FileDocCategorySizeDatePackage
AssertionTest.javaAPI DocApache Ant 1.701263Wed Dec 13 06:16:20 GMT 2006None

AssertionTest

public class AssertionTest extends TestCase
this is an assertion tester for junit

Fields Summary
Constructors Summary
public AssertionTest(String name)

		super(name);
	
Methods Summary
public voidtestAssertNotRaised()

		assert(2+2==4);
	
public voidtestAssertRaised()

		try {
			assert true == false;
			fail("expected an assertion");
		} catch(AssertionError asserto) {
			//if we got here, all was well
		}