JavaOne – Mockito 2 Cleaner Tests and Enhanced Productivity

Main menu:

Topics

Recent Posts

Feeds

RSS Feed RSS - Posts

November 2017
M T W T F S S
« Oct    
 12345
6789101112
13141516171819
20212223242526
27282930  

Past Posts

Java/Java EE

JDBC

Other

Archive for the tag "mockito"

JavaOne – Mockito 2 Cleaner Tests and Enhanced Productivity

October 4th, 2017 by Jeanne Boyarsky

“Mockito 2 Cleaner Tests and Enhanced Productivity” Speaker: Szczepan Faber [nice twitter handle – @mockitoguy] For more blog posts from JavaOne, see the table of contents Stats Started in 2008 to overcome shortcomings of JMock and EasyMock Mockito is number 3 Java library on github [not sure what this means] 2016 – Mockito 2 came […]

upgrading mockito – forwards and backwards

September 9th, 2017 by Jeanne Boyarsky

I upgraded Mockito from 1.X to 2.X. (Because I wanted to try out the JUnit 5 MockitoExtension. JUnit 4 I like @RunWith(MockitoJUnitRunner.class). The two main benefits: Inject mocks as instance variables instead of static call to MockitoAnnotations.initMocks(this); Tells you about unnecessary mock setup calls you have. JUnit 5 Instead of the Mockito Runner, you use @ExtendWith(MockitoExtension.class). This was written […]