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

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

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