upgrading mockito – forwards and backwards

Main menu:

Topics

Recent Posts

Feeds

RSS Feed RSS - Posts

January 2018
M T W T F S S
« Dec    
1234567
891011121314
15161718192021
22232425262728
293031  

Past Posts

Java/Java EE

JDBC

Other

Archive for the tag "jmock"

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 […]