Copy/paste and edit these templates to suit your coding style.
import org.junit.After; import org.junit.Before; import org.junit.Test; /** * Copy/paste and edit these templates to suit your coding style. */ public class JUnitTemplate { /** * Sets up the test fixture. * (Called before every test case method.) */ @Before public void setUp() { } /** * Tears down the test fixture. * (Called after every test case method.) */ @After public void tearDown() { } /** * Write code for actual test */ @Test public void testSomeThing() { } /** * Exception Handling */ @Test(expected=Exception.class) public void testForException() { } }
No comments:
Post a Comment