| org.apache.harmony.jpda.tests.jdwp.StackFrame.JDWPStackFrameTestCase org.apache.harmony.jpda.tests.jdwp.StackFrame.PopFrames002Test
Method Summary | |
protected String | getDebuggeeClassName() | public static void | main(String[] args) | void | printStackFrame(int NumberOfFrames, FrameInfo[] frameInfos) | public void | testPopFramesWithInvokeMethods() This testcase exercises StackFrame.PopFrames command when thread is not suspended.
The test starts PopFramesDebuggee class, sets a breakpoint
in 'nestledMethod4', stops at breakpoint and prints stack.
Then the test performs ClassType.InvokeMethodCommand without waiting reply, and
waits to ensure that method was started. | public void | testPopSeveralFrames() This testcase exercises StackFrame.PopFrames command to discard several frames at once.
The test starts PopFramesDebuggee class, sets a breakpoint
in 'nestledMethod4', stops at breakpoint and prints stack.
Then the test performs StackFrame.PopFrame command to discard several frames at once,
prints stack and checks that discarded frames are not returned
by ThreadReference.Frames command. | public void | testPopSeveralTimes() This testcase exercises StackFrame.PopFrames command performing it several times.
The test starts PopFramesDebuggee class, sets a breakpoint
in 'nestledMethod4', stops at breakpoint and prints stack.
Then the test performs StackFrame.PopFrame command several times
to discard frames one after another,
prints stack and checks that discarded frames are not returned
by ThreadReference.Frames command. |
getDebuggeeClassName | protected String getDebuggeeClassName()(Code) | | |
printStackFrame | void printStackFrame(int NumberOfFrames, FrameInfo[] frameInfos)(Code) | | |
testPopFramesWithInvokeMethods | public void testPopFramesWithInvokeMethods()(Code) | | This testcase exercises StackFrame.PopFrames command when thread is not suspended.
The test starts PopFramesDebuggee class, sets a breakpoint
in 'nestledMethod4', stops at breakpoint and prints stack.
Then the test performs ClassType.InvokeMethodCommand without waiting reply, and
waits to ensure that method was started.
During working of method the test performs StackFrame.PopFrames command.
Then the test checks that StackFrame.PopFrames command
returns error: THREAD_NOT_SUSPENDED or INVALID_FRAMEID.
Next, the test receives reply from invoked method and resumes debuggee..
|
testPopSeveralFrames | public void testPopSeveralFrames()(Code) | | This testcase exercises StackFrame.PopFrames command to discard several frames at once.
The test starts PopFramesDebuggee class, sets a breakpoint
in 'nestledMethod4', stops at breakpoint and prints stack.
Then the test performs StackFrame.PopFrame command to discard several frames at once,
prints stack and checks that discarded frames are not returned
by ThreadReference.Frames command.
Then the test resumes debuggee and checks stop on the same breakpoint.
|
testPopSeveralTimes | public void testPopSeveralTimes()(Code) | | This testcase exercises StackFrame.PopFrames command performing it several times.
The test starts PopFramesDebuggee class, sets a breakpoint
in 'nestledMethod4', stops at breakpoint and prints stack.
Then the test performs StackFrame.PopFrame command several times
to discard frames one after another,
prints stack and checks that discarded frames are not returned
by ThreadReference.Frames command.
Then the test resumes debuggee and checks stop on the same breakpoint.
|
|
|