Test early, test often, test automatically
- The pragmatic programmer.
Test early, test often, test automatically
When you use IntelliJ Idea, and say you have such class:
public class TurbineServer extends Application<TurbineConfiguration> {
}
and when you click on TurbineServer
and press command + shift + T
you can switch between class and its unit test.
Also you can create new test, @Before
, and @After
by pressing command + N
.
You can use Mockito to help you do mocking. Checkout the example at their website.
You can use JUnit Parameterized annotation to do parameterized testing.
You can use FixtureHelper class to load your fixture file as a String
for testing purpose.