示例#1
0
文件: TestC.java 项目: f1yegor/gg
  /** Example test method. */
  @Test
  public void testMethod4() {
    X.println("Output from TestC.testMethod4().");

    throw new RuntimeException("Failed exception from TestC.testMethod4().");
  }
示例#2
0
文件: TestC.java 项目: f1yegor/gg
  /** Example test method. */
  @Test
  public void testMethod3() {
    X.println("Output from TestC.testMethod3().");

    Assert.assertTrue("Failed assertion from TestC.testMethod3().", false);
  }
示例#3
0
文件: TestC.java 项目: f1yegor/gg
 /**
  * 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());
 }
示例#4
0
文件: TestC.java 项目: f1yegor/gg
 /** Example test method. */
 @Test
 public void testMethod2() {
   X.println("Output from TestC.testMethod2().");
 }
示例#5
0
文件: TestC.java 项目: f1yegor/gg
 /**
  * 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());
 }