public AssertFailureTest(String name) {
super(name);
}
public static Test suite() {
BaseTestSuite suite = new BaseTestSuite("AssertFailureTest");
try {
//Only add the tests if this is a sane build.
Class.forName("org.apache.derby.shared.common.sanity." +
"AssertFailure");
// Run with thread dump permissions
suite.addTest(new SecurityManagerSetup(new AssertFailureTest(
"testAssertFailureThreadDump"), POLICY_FILENAME));
// Run WITHOUT thread dump permissions
suite.addTest(new SecurityManagerSetup(new AssertFailureTest(
"testAssertFailureNoThreadDump"), NO_DUMP_POLICY_FILENAME));
} catch (ClassNotFoundException e) {
//Ignore. Just return an empty suite.
}