Method Summary |
|
protected void | connectToVM() Conects to the target vm. |
protected String[] | excludedTests() Returns the names of the tests that are known to not work
By default, none are excluded. |
protected AccessWatchpointRequest | getAccessWatchpointRequest() Creates and returns an access watchpoint request
for the field "fBool" in
org.eclipse.debug.jdi.tests.program.MainClass
NOTE: This assumes that the VM can watch field access. |
protected Vector | getAllMatchingTests(String match) Returns all tests that start with the given string. |
protected ArrayType | getArrayType() Returns the array type. |
protected ArrayReference | getBooleanArrayReference() |
protected ArrayType | getBooleanArrayType() |
protected ArrayReference | getBooleanDoubleArrayReference() |
protected ArrayType | getBooleanDoubleArrayType() |
protected BreakpointRequest | getBreakpointRequest() Creates and returns a breakpoint request in the first
instruction of the MainClass.triggerBreakpointEvent() method. |
protected BreakpointRequest | getBreakpointRequest(Location loc) |
protected ArrayReference | getByteArrayReference() |
protected ArrayType | getByteArrayType() |
protected ArrayReference | getByteDoubleArrayReference() |
protected ArrayType | getByteDoubleArrayType() |
protected ArrayReference | getCharArrayReference() |
protected ArrayType | getCharArrayType() |
protected ArrayReference | getCharDoubleArrayReference() |
protected ArrayType | getCharDoubleArrayType() |
protected ClassType | getClass(String name) Returns the class with the given name or null if not loaded. |
protected ClassLoaderReference | getClassLoaderReference() |
protected ArrayReference | getDoubleArrayReference() |
protected ArrayType | getDoubleArrayType() |
protected ArrayReference | getDoubleDoubleArrayReference() |
protected ArrayType | getDoubleDoubleArrayType() |
protected ExceptionRequest | getExceptionRequest() Creates and returns an exception request for uncaught exceptions. |
protected Field | getField() |
protected Field | getField(String fieldName) Returns the field with the given name in
org.eclipse.debug.jdi.tests.program.MainClass. |
protected ArrayReference | getFloatArrayReference() |
protected ArrayType | getFloatArrayType() |
protected ArrayReference | getFloatDoubleArrayReference() |
protected ArrayType | getFloatDoubleArrayType() |
protected StackFrame | getFrame(int n) Returns the n frame (starting at the top of the stack) of the thread
contained in the static field "fThread" of org.eclipse.debug.jdi.tests.program.MainClass. |
protected ArrayReference | getIntArrayReference() |
protected ArrayType | getIntArrayType() |
protected ArrayReference | getIntDoubleArrayReference() |
protected ArrayType | getIntDoubleArrayType() |
protected InterfaceType | getInterfaceType() Returns the interface type org.eclipse.debug.jdi.tests.program.Printable. |
protected LocalVariable | getLocalVariable() Returns the variable "t" in the frame running MainClass.run(). |
protected Location | getLocation() Returns the first location in MainClass.print(OutputStream). |
protected ArrayReference | getLongArrayReference() |
protected ArrayType | getLongArrayType() |
protected ArrayReference | getLongDoubleArrayReference() |
protected ArrayType | getLongDoubleArrayType() |
protected ClassType | getMainClass() Returns the class org.eclipse.debug.jdi.tests.program.MainClass. |
protected ThreadReference | getMainThread() |
protected Method | getMethod() |
protected Method | getMethod(String name, String signature) |
protected Method | getMethod(String className, String name, String signature) Returns the method with the given name and signature
in the given class. |
protected ModificationWatchpointRequest | getModificationWatchpointRequest() Creates and returns a modification watchpoint request
for the field "fBool" in
org.eclipse.debug.jdi.tests.program.MainClass. |
protected ArrayReference | getNonEmptyDoubleArrayReference() Returns another array reference. |
protected ArrayReference | getObjectArrayReference() Returns an array reference. |
protected ObjectReference | getObjectReference() |
protected ArrayReference | getShortArrayReference() |
protected ArrayType | getShortArrayType() |
protected ArrayReference | getShortDoubleArrayReference() |
protected ArrayType | getShortDoubleArrayType() |
protected AccessWatchpointRequest | getStaticAccessWatchpointRequest() Creates and returns an access watchpoint request
for the static field "fString" in
org.eclipse.debug.jdi.tests.program.MainClass
NOTE: This assumes that the VM can watch field access. |
protected ModificationWatchpointRequest | getStaticModificationWatchpointRequest() Creates and returns a modification watchpoint request
for the static field "fString" in
org.eclipse.debug.jdi.tests.program.MainClass. |
protected StringReference | getStringReference() |
protected ClassType | getSystemType() Returns the class java.lang.Object. |
protected ThreadReference | getThread() |
VMInformation | getVMInfo() Returns the VM info for this test. |
protected void | killVM() |
protected void | launchTarget() |
protected void | launchTargetAndConnectToVM() Launches the target VM and connects to VM. |
protected void | launchTargetAndStartProgram() Launch target VM and start program in target VM. |
abstract public void | localSetUp() Initializes the fields that are used by this test only. |
public void | localTearDown() Makes sure the test leaves the VM in the same state it found it. |
protected static boolean | parseArgs(String[] args) Parses the given arguments and store them in this tests
fields. |
protected static void | printUsage() Prints the various options to pass to the constructor. |
protected void | resetField() |
protected void | resetStaticField() |
protected void | runSuite(String[] args) Runs this test's suite with the given arguments. |
void | setInControl(boolean inControl) Sets the 'in control of the VM' flag for this test. |
protected void | setUp() |
void | setVMInfo(VMInformation info) Sets the VM info for this test. |
protected void | shutDownTarget() Shut down the target. |
protected void | startProgram() Starts the target program. |
protected void | stopReaders() Stop console and event readers. |
protected Test | suite() |
protected void | tearDown() Undo the initialization of the test. |
protected Event | triggerAndWait(EventRequest request, String eventType, boolean shouldGo) Triggers and waits for the given event to come in. |
protected Event | triggerAndWait(EventRequest request, String eventType, boolean shouldGo, long time) Triggers and waits for the given event to come in. |
protected void | triggerEvent(String eventType) Triggers the given type of event. |
protected StepEvent | triggerStepAndWait() Triggers a step event and waits for it to come in. |
protected StepEvent | triggerStepAndWait(ThreadReference thread, int gran, int depth) |
protected StepEvent | triggerStepAndWait(ThreadReference thread, EventRequest eventRequest, int timeout) |
protected void | verbose(String verboseString) Output verbose string if asked for. |
protected boolean | vmIsRunning() |
protected Event | waitForEvent(EventWaiter waiter, long time) Waits for an event to come in using the given waiter.
Waits for the given time. |
protected void | waitUntilReady() Waits until the program is ready to be tested. |