| org.apache.harmony.jpda.tests.jdwp.Events.CombinedEventsTestCase org.apache.harmony.jpda.tests.jdwp.Events.CombinedEventsTest
CombinedEventsTest | public class CombinedEventsTest extends CombinedEventsTestCase (Code) | | JDWP Unit test for possible combined (co-located) events:
METHOD_ENTRY, SINGLE_STEP, BREAKPOINT, METHOD_EXIT.
|
Method Summary | |
void | checkVMDeathEvent() | protected String | getDebuggeeClassName() | public static void | main(String[] args) | void | receiveAndCheckEvents(byte[] EXPECTED_EVENTS_ARRAY, Location expectedLocation) | public void | testCombinedEvents_01() Test starts CombinedEventsDebuggee class.
Then sets requests for expected events at the beginning
(location = 0) of debuggee's method 'sampleMethod()'. | public void | testCombinedEvents_02() Test starts CombinedEventsDebuggee class, sets a
breakpoint at the beginning of method sampleMethod() of debuggee, waits
for this breakpoint. | public void | testCombinedEvents_03() Test starts CombinedEventsDebuggee class.
Then sets requests for expected events at the beginning
(location = 0) of debuggee's method 'sampleMethod()'. | public void | testCombinedEvents_04() Test starts CombinedEventsDebuggee class, sets a
breakpoint at the beginning of method sampleMethod() of debuggee, waits
for this breakpoint. | public void | testCombinedEvents_05() Test starts CombinedEventsDebuggee class, sets a
breakpoint inside method run() of debuggee, waits for this breakpoint and
gets threadID. | public void | testCombinedEvents_06() Test starts CombinedEventsDebuggee class, sets a
breakpoint inside method run() of debuggee, waits for this breakpoint and
gets threadID. |
checkVMDeathEvent | void checkVMDeathEvent()(Code) | | |
getDebuggeeClassName | protected String getDebuggeeClassName()(Code) | | |
receiveAndCheckEvents | void receiveAndCheckEvents(byte[] EXPECTED_EVENTS_ARRAY, Location expectedLocation)(Code) | | |
testCombinedEvents_01 | public void testCombinedEvents_01()(Code) | | Test starts CombinedEventsDebuggee class.
Then sets requests for expected events at the beginning
(location = 0) of debuggee's method 'sampleMethod()'. Expected events are:
METHOD_ENTRY, SINGLE_STEP, BREAKPOINT. After setting requests the test starts
to receive single SINGLE_STEP events, until debuggee achieves beginning
of sampleMethod(). Then test checks, that three expected events were
grouped on one location and sent in one event packet. At the end, test cleans
request for SINGLE_STEP event, resumes debuggee and checks that only
VM_DEATH event is received after that.
|
testCombinedEvents_02 | public void testCombinedEvents_02()(Code) | | Test starts CombinedEventsDebuggee class, sets a
breakpoint at the beginning of method sampleMethod() of debuggee, waits
for this breakpoint. Then sets requests for expected events at the end of
debuggee's method sampleMethod(). Expected events are: METHOD_EXIT,
SINGLE_STEP, BREAKPOINT. Then resumes debuggee and starts to receive
single SINGLE_STEP events, until debuggee achieves end of sampleMethod().
Then test checks, that three expected events were grouped on one location
and sent in one packet. At the end, test cleans request for SINGLE_STEP
event, resumes debuggee and checks that only VM_DEATH event is received
after that.
|
testCombinedEvents_03 | public void testCombinedEvents_03()(Code) | | Test starts CombinedEventsDebuggee class.
Then sets requests for expected events at the beginning
(location = 0) of debuggee's method 'sampleMethod()'. Expected events are:
METHOD_ENTRY, SINGLE_STEP. After setting requests the test starts
to receive single SINGLE_STEP events, until debuggee achieves beginning of
sampleMethod(). Then test checks, that three expected events were grouped
on one location and sent in one packet. At the end, test cleans request
for SINGLE_STEP event, resumes debuggee and checks that only VM_DEATH
event is received after that.
|
testCombinedEvents_04 | public void testCombinedEvents_04()(Code) | | Test starts CombinedEventsDebuggee class, sets a
breakpoint at the beginning of method sampleMethod() of debuggee, waits
for this breakpoint. Then sets requests for expected events at the end of
debuggee's method sampleMethod(). Expected events are: METHOD_EXIT,
SINGLE_STEP. Then resumes debuggee and starts to receive single
SINGLE_STEP events, until debuggee achieves end of sampleMethod(). Then
test checks, that three expected events were grouped on one location and
sent in one packet. At the end, test cleans request for SINGLE_STEP
event, resumes debuggee and checks that only VM_DEATH event is received
after that.
|
testCombinedEvents_05 | public void testCombinedEvents_05()(Code) | | Test starts CombinedEventsDebuggee class, sets a
breakpoint inside method run() of debuggee, waits for this breakpoint and
gets threadID. Then sets requests for expected events at the beginning
(location = 0) of debuggee's method sampleMethod(). Expected events are:
METHOD_ENTRY, BREAKPOINT. Then resumes debuggee and starts to receive
single SINGLE_STEP events, until debuggee achieves beginning of
sampleMethod(). Then test checks, that three expected events were grouped
on one location and sent in one packet. At the end, test resumes debuggee
and checks that only VM_DEATH event is received after that.
|
testCombinedEvents_06 | public void testCombinedEvents_06()(Code) | | Test starts CombinedEventsDebuggee class, sets a
breakpoint inside method run() of debuggee, waits for this breakpoint and
gets threadID. Then sets requests for expected events at the beginning
(location = 0) of debuggee's method sampleMethod(). Expected events are:
METHOD_EXIT, BREAKPOINT. Then resumes debuggee and starts to receive
single SINGLE_STEP events, until debuggee achieves beginning of
sampleMethod(). Then test checks, that three expected events were grouped
on one location and sent in one packet. At the end, test resumes debuggee
and checks that only VM_DEATH event is received after that.
|
Fields inherited from org.apache.harmony.jpda.tests.jdwp.Events.CombinedEventsTestCase | static Object waitTimeObject(Code)(Java Doc)
|
|
|