Package junit.extensions

Examples of junit.extensions.ExceptionTestCase.run()


    super (name);
  }
 
  public void testExceptionSubclass() {
    ExceptionTestCase test= new ThrowExceptionTestCase("test", IndexOutOfBoundsException.class);
    TestResult result= test.run();
    assertEquals(1, result.runCount());
    assertTrue(result.wasSuccessful());
  }
  public void testExceptionTest() {
    ExceptionTestCase test= new ThrowExceptionTestCase("test", IndexOutOfBoundsException.class);
View Full Code Here


    assertEquals(1, result.runCount());
    assertTrue(result.wasSuccessful());
  }
  public void testExceptionTest() {
    ExceptionTestCase test= new ThrowExceptionTestCase("test", IndexOutOfBoundsException.class);
    TestResult result= test.run();
    assertEquals(1, result.runCount());
    assertTrue(result.wasSuccessful());
  }
  public void testFailure() {
    ExceptionTestCase test= new ThrowRuntimeExceptionTestCase("test", IndexOutOfBoundsException.class);
View Full Code Here

    assertEquals(1, result.runCount());
    assertTrue(result.wasSuccessful());
  }
  public void testFailure() {
    ExceptionTestCase test= new ThrowRuntimeExceptionTestCase("test", IndexOutOfBoundsException.class);
    TestResult result= test.run();
    assertEquals(1, result.runCount());
    assertEquals(1, result.errorCount());
  }
  public void testNoException() {
    ExceptionTestCase test= new ThrowNoExceptionTestCase("test", Exception.class);
View Full Code Here

    assertEquals(1, result.runCount());
    assertEquals(1, result.errorCount());
  }
  public void testNoException() {
    ExceptionTestCase test= new ThrowNoExceptionTestCase("test", Exception.class);
    TestResult result= test.run();
    assertEquals(1, result.runCount());
    assertEquals(1, result.failureCount());
  }
  public void testWrongException() {
    ExceptionTestCase test= new ThrowRuntimeExceptionTestCase("test", IndexOutOfBoundsException.class);
View Full Code Here

    assertEquals(1, result.runCount());
    assertEquals(1, result.failureCount());
  }
  public void testWrongException() {
    ExceptionTestCase test= new ThrowRuntimeExceptionTestCase("test", IndexOutOfBoundsException.class);
    TestResult result= test.run();
    assertEquals(1, result.runCount());
    assertEquals(1, result.errorCount());
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.