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

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

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