/** Example test method. */ @Test public void testMethod4() { X.println("Output from TestC.testMethod4()."); throw new RuntimeException("Failed exception from TestC.testMethod4()."); }
/** Example test method. */ @Test public void testMethod3() { X.println("Output from TestC.testMethod3()."); Assert.assertTrue("Failed assertion from TestC.testMethod3().", false); }
/** * Tear down logic. * * @throws Exception Thrown in case of any error. */ @After public void afterTest() throws Exception { X.println("Tearing down test execution: " + getClass().getSimpleName()); }
/** Example test method. */ @Test public void testMethod2() { X.println("Output from TestC.testMethod2()."); }
/** * Set up logic. * * @throws Exception Thrown in case of any error. */ @Before public void beforeTest() throws Exception { X.println("Preparing for test execution: " + getClass().getSimpleName()); }