コード例 #1
0
 @Test
 public void testFailure() {
   try {
     tester.start();
   } catch (Exception e) {
   }
   assertFalse("Test passed", tester.isPassed());
 }
コード例 #2
0
 /** Test of getGenerator method, of class TransmissionTester. */
 @Test
 public void testPassed() {
   tester.connect(tester.getDetector());
   tester.start();
   assertTrue("Test not passed", tester.isPassed());
 }