/**
* @test
* @bug 4390869
* @bug 4460328
* @summary Test the new SourceDebugExtension facility
*
* @author Robert Field
*
* @library ..
* @run build TestScaffold VMConnection TargetListener TargetAdapter InstallSDE
* @run compile SourceDebugExtensionTest.java
* @run compile -g SourceDebugExtensionTarg.java
* @run main SourceDebugExtensionTest
*/
super(args);
}
testSetUp();
}
/********** test set-up **********/
"SourceDebugExtensionTarg.class"),
"testString"));
}
/********** test core **********/
/*
* Get to the top of main()
* to determine targetClass
*/
if (!vm().canGetSourceDebugExtension()) {
failure("FAIL: canGetSourceDebugExtension() is false");
} else {
println("canGetSourceDebugExtension() is true");
}
}
/*
* resume the target listening for events
*/
/*
* deal with results of test
* if anything has called failure("foo") testFailed will be true
*/
if (!testFailed) {
println("SourceDebugExtensionTest: passed");
} else {
throw new Exception("SourceDebugExtensionTest: failed");
}
}
}