upgrading mockito – forwards and backwards

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 category JUnit 5

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

converting 2K+ tests to junit 5 in one day

September 2nd, 2017 by Jeanne Boyarsky

I set myself a goal to see if I could convert all the CodeRanch JForum tests to JUnit 5 in one day. And I mean with Java 5 package names, not just running them in JUnit 4 mode. (I wanted to see what edge cases I encountered). Let’s see how that went. Forking Ant doesn’t […]

junit 5 and intellij

August 13th, 2017 by Jeanne Boyarsky

I use Eclipse at home for development. And mostly Maven (except for two projects that use Ant because some of the people working on them have less reliable internet connections). After preparing to run JUnit 5 with Eclipse and Maven, I wanted to check the impact on IntelliJ. It’s been a long time since I’ve tried […]