Esempio n. 1
0
  /** Example test method. */
  @Test
  public void testMethod4() {
    X.println("Output from TestC.testMethod4().");

    throw new RuntimeException("Failed exception from TestC.testMethod4().");
  }
Esempio n. 2
0
  /** Example test method. */
  @Test
  public void testMethod3() {
    X.println("Output from TestC.testMethod3().");

    Assert.assertTrue("Failed assertion from TestC.testMethod3().", false);
  }
Esempio n. 3
0
 /**
  * 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());
 }
Esempio n. 4
0
 /** Example test method. */
 @Test
 public void testMethod2() {
   X.println("Output from TestC.testMethod2().");
 }
Esempio n. 5
0
 /**
  * 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());
 }