junitTests


Remarks

ParameterContextDetails
@BeforeClassStaticExecuted when the class is first created
@BeforeInstanceExecuted before each test in the class
@TestInstanceShould be declared each method to test
@AfterInstanceExecuted after each test in the class
@AfterClassStaticExecuted before destruction of the class

Example Test Class Format

public class TestFeatureA {

    @BeforeClass
    public static void setupClass() {}
    
    @Before
    public void setupTest() {}
    
    @Test
    public void testA() {}
    
    @Test
    public void testB() {}
    
    @After
    public void tearDownTest() {}
    
    @AfterClass
    public static void tearDownClass() {}
    
    }
}