Java Doc for AbstractJDITest.java in  » IDE-Eclipse » jdt » org » eclipse » debug » jdi » tests » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » jdt » org.eclipse.debug.jdi.tests 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.debug.jdi.tests.AbstractJDITest

All known Subclasses:   org.eclipse.debug.jdi.tests.ModificationWatchpointEventTest,  org.eclipse.debug.jdi.tests.StringReferenceTest,  org.eclipse.debug.jdi.tests.EventRequestTest,  org.eclipse.debug.jdi.tests.FieldTest,  org.eclipse.debug.jdi.tests.HotCodeReplacementTest,  org.eclipse.debug.jdi.tests.ArrayTypeTest,  org.eclipse.debug.jdi.tests.ObjectReferenceTest,  org.eclipse.debug.jdi.tests.VMDisposeTest,  org.eclipse.debug.jdi.tests.ByteValueTest,  org.eclipse.debug.jdi.tests.ClassPrepareRequestTest,  org.eclipse.debug.jdi.tests.MethodEntryRequestTest,  org.eclipse.debug.jdi.tests.ThreadDeathEventTest,  org.eclipse.debug.jdi.tests.MonitorFrameInfoTests,  org.eclipse.debug.jdi.tests.StepEventTest,  org.eclipse.debug.jdi.tests.LongValueTest,  org.eclipse.debug.jdi.tests.ClassLoaderReferenceTest,  org.eclipse.debug.jdi.tests.ClassPrepareEventTest,  org.eclipse.debug.jdi.tests.CharValueTest,  org.eclipse.debug.jdi.tests.ClassTypeTest,  org.eclipse.debug.jdi.tests.LocatableTest,  org.eclipse.debug.jdi.tests.ReferenceTypeTest,  org.eclipse.debug.jdi.tests.VirtualMachineExitTest,  org.eclipse.debug.jdi.tests.WatchpointRequestTest,  org.eclipse.debug.jdi.tests.ThreadGroupReferenceTest,  org.eclipse.debug.jdi.tests.FloatValueTest,  org.eclipse.debug.jdi.tests.MethodTest,  org.eclipse.debug.jdi.tests.ForceEarlyReturnTests,  org.eclipse.debug.jdi.tests.ExceptionEventTest,  org.eclipse.debug.jdi.tests.HeapWalkingTests,  org.eclipse.debug.jdi.tests.BooleanValueTest,  org.eclipse.debug.jdi.tests.MirrorTest,  org.eclipse.debug.jdi.tests.ShortValueTest,  org.eclipse.debug.jdi.tests.AccessibleTest,  org.eclipse.debug.jdi.tests.BreakpointRequestTest,  org.eclipse.debug.jdi.tests.ValueTest,  org.eclipse.debug.jdi.tests.SourceNameFilterTests,  org.eclipse.debug.jdi.tests.VirtualMachineTest,  org.eclipse.debug.jdi.tests.WatchpointEventTest,  org.eclipse.debug.jdi.tests.PrimitiveValueTest,  org.eclipse.debug.jdi.tests.ClassesByNameTest,  org.eclipse.debug.jdi.tests.DoubleValueTest,  org.eclipse.debug.jdi.tests.ExceptionRequestTest,  org.eclipse.debug.jdi.tests.EventRequestManagerTest,  org.eclipse.debug.jdi.tests.ThreadStartEventTest,  org.eclipse.debug.jdi.tests.EventTest,  org.eclipse.debug.jdi.tests.IntegerValueTest,  org.eclipse.debug.jdi.tests.VMDisconnectEventTest,  org.eclipse.debug.jdi.tests.ArrayReferenceTest,  org.eclipse.debug.jdi.tests.LocalVariableTest,  org.eclipse.debug.jdi.tests.TypeComponentTest,  org.eclipse.debug.jdi.tests.StackFrameTest,  org.eclipse.debug.jdi.tests.TypeTest,  org.eclipse.debug.jdi.tests.ConstantPoolTests,  org.eclipse.debug.jdi.tests.LocationTest,  org.eclipse.debug.jdi.tests.ThreadReferenceTest,  org.eclipse.debug.jdi.tests.ProvideArgumentsTests,  org.eclipse.debug.jdi.tests.ContendedMonitorTests,  org.eclipse.debug.jdi.tests.InterfaceTypeTest,  org.eclipse.debug.jdi.tests.MethodReturnValuesTests,  org.eclipse.debug.jdi.tests.MethodExitRequestTest,
AbstractJDITest
abstract public class AbstractJDITest extends TestCase (Code)
Tests for com.sun.jdi.* and JDWP commands. These tests assume that the target program is "org.eclipse.debug.jdi.tests.program.MainClass". Examples of arguments: -launcher SunVMLauncher -address c:\jdk1.2.2\ -cp d:\target -launcher J9VMLauncher -address d:\ive\ -cp d:\target


Field Summary
final protected static  intRUN_FRAME_OFFSET
    
static  intTIMEOUT
    
protected static  intfBackEndPort
    
protected static  StringfBootPath
    
protected static  StringfClassPath
    
protected  AbstractReaderfConsoleErrorReader
    
protected  AbstractReaderfConsoleReader
    
protected  EventReaderfEventReader
    
protected  booleanfInControl
    
protected  ProcessfLaunchedProxy
    
protected  ProcessfLaunchedVM
    
protected static  StringfProxyCmd
    
protected  AbstractReaderfProxyErrorReader
    
protected  AbstractReaderfProxyReader
    
protected static  StringfProxyerrFile
    
protected static  StringfProxyoutFile
    
protected static  StringfStderrFile
    
protected static  StringfStdoutFile
    
protected static  StringfTargetAddress
    
protected  com.sun.jdi.VirtualMachinefVM
    
protected static  StringfVMLauncherName
    
protected static  intfVMTraceFlags
    
protected static  StringfVMType
    
protected static  booleanfVerbose
    
protected static  StringfVmCmd
    

Constructor Summary
public  AbstractJDITest()
     Constructs a test case with a default name.

Method Summary
protected  voidconnectToVM()
     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  AccessWatchpointRequestgetAccessWatchpointRequest()
     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  VectorgetAllMatchingTests(String match)
     Returns all tests that start with the given string.
protected  ArrayTypegetArrayType()
     Returns the array type.
protected  ArrayReferencegetBooleanArrayReference()
    
protected  ArrayTypegetBooleanArrayType()
    
protected  ArrayReferencegetBooleanDoubleArrayReference()
    
protected  ArrayTypegetBooleanDoubleArrayType()
    
protected  BreakpointRequestgetBreakpointRequest()
     Creates and returns a breakpoint request in the first instruction of the MainClass.triggerBreakpointEvent() method.
protected  BreakpointRequestgetBreakpointRequest(Location loc)
    
protected  ArrayReferencegetByteArrayReference()
    
protected  ArrayTypegetByteArrayType()
    
protected  ArrayReferencegetByteDoubleArrayReference()
    
protected  ArrayTypegetByteDoubleArrayType()
    
protected  ArrayReferencegetCharArrayReference()
    
protected  ArrayTypegetCharArrayType()
    
protected  ArrayReferencegetCharDoubleArrayReference()
    
protected  ArrayTypegetCharDoubleArrayType()
    
protected  ClassTypegetClass(String name)
     Returns the class with the given name or null if not loaded.
protected  ClassLoaderReferencegetClassLoaderReference()
    
protected  ArrayReferencegetDoubleArrayReference()
    
protected  ArrayTypegetDoubleArrayType()
    
protected  ArrayReferencegetDoubleDoubleArrayReference()
    
protected  ArrayTypegetDoubleDoubleArrayType()
    
protected  ExceptionRequestgetExceptionRequest()
     Creates and returns an exception request for uncaught exceptions.
protected  FieldgetField()
    
protected  FieldgetField(String fieldName)
     Returns the field with the given name in org.eclipse.debug.jdi.tests.program.MainClass.
protected  ArrayReferencegetFloatArrayReference()
    
protected  ArrayTypegetFloatArrayType()
    
protected  ArrayReferencegetFloatDoubleArrayReference()
    
protected  ArrayTypegetFloatDoubleArrayType()
    
protected  StackFramegetFrame(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  ArrayReferencegetIntArrayReference()
    
protected  ArrayTypegetIntArrayType()
    
protected  ArrayReferencegetIntDoubleArrayReference()
    
protected  ArrayTypegetIntDoubleArrayType()
    
protected  InterfaceTypegetInterfaceType()
     Returns the interface type org.eclipse.debug.jdi.tests.program.Printable.
protected  LocalVariablegetLocalVariable()
     Returns the variable "t" in the frame running MainClass.run().
protected  LocationgetLocation()
     Returns the first location in MainClass.print(OutputStream).
protected  ArrayReferencegetLongArrayReference()
    
protected  ArrayTypegetLongArrayType()
    
protected  ArrayReferencegetLongDoubleArrayReference()
    
protected  ArrayTypegetLongDoubleArrayType()
    
protected  ClassTypegetMainClass()
     Returns the class org.eclipse.debug.jdi.tests.program.MainClass.
protected  ThreadReferencegetMainThread()
    
protected  MethodgetMethod()
    
protected  MethodgetMethod(String name, String signature)
    
protected  MethodgetMethod(String className, String name, String signature)
     Returns the method with the given name and signature in the given class.
protected  ModificationWatchpointRequestgetModificationWatchpointRequest()
     Creates and returns a modification watchpoint request for the field "fBool" in org.eclipse.debug.jdi.tests.program.MainClass.
protected  ArrayReferencegetNonEmptyDoubleArrayReference()
     Returns another array reference.
protected  ArrayReferencegetObjectArrayReference()
     Returns an array reference.
protected  ObjectReferencegetObjectReference()
    
protected  ArrayReferencegetShortArrayReference()
    
protected  ArrayTypegetShortArrayType()
    
protected  ArrayReferencegetShortDoubleArrayReference()
    
protected  ArrayTypegetShortDoubleArrayType()
    
protected  AccessWatchpointRequestgetStaticAccessWatchpointRequest()
     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  ModificationWatchpointRequestgetStaticModificationWatchpointRequest()
     Creates and returns a modification watchpoint request for the static field "fString" in org.eclipse.debug.jdi.tests.program.MainClass.
protected  StringReferencegetStringReference()
    
protected  ClassTypegetSystemType()
     Returns the class java.lang.Object.
protected  ThreadReferencegetThread()
    
 VMInformationgetVMInfo()
     Returns the VM info for this test.
protected  voidkillVM()
    
protected  voidlaunchTarget()
    
protected  voidlaunchTargetAndConnectToVM()
     Launches the target VM and connects to VM.
protected  voidlaunchTargetAndStartProgram()
     Launch target VM and start program in target VM.
abstract public  voidlocalSetUp()
     Initializes the fields that are used by this test only.
public  voidlocalTearDown()
     Makes sure the test leaves the VM in the same state it found it.
protected static  booleanparseArgs(String[] args)
     Parses the given arguments and store them in this tests fields.
protected static  voidprintUsage()
     Prints the various options to pass to the constructor.
protected  voidresetField()
    
protected  voidresetStaticField()
    
protected  voidrunSuite(String[] args)
     Runs this test's suite with the given arguments.
 voidsetInControl(boolean inControl)
     Sets the 'in control of the VM' flag for this test.
protected  voidsetUp()
    
 voidsetVMInfo(VMInformation info)
     Sets the VM info for this test.
protected  voidshutDownTarget()
     Shut down the target.
protected  voidstartProgram()
     Starts the target program.
protected  voidstopReaders()
     Stop console and event readers.
protected  Testsuite()
    
protected  voidtearDown()
     Undo the initialization of the test.
protected  EventtriggerAndWait(EventRequest request, String eventType, boolean shouldGo)
     Triggers and waits for the given event to come in.
protected  EventtriggerAndWait(EventRequest request, String eventType, boolean shouldGo, long time)
     Triggers and waits for the given event to come in.
protected  voidtriggerEvent(String eventType)
     Triggers the given type of event.
protected  StepEventtriggerStepAndWait()
     Triggers a step event and waits for it to come in.
protected  StepEventtriggerStepAndWait(ThreadReference thread, int gran, int depth)
    
protected  StepEventtriggerStepAndWait(ThreadReference thread, EventRequest eventRequest, int timeout)
    
protected  voidverbose(String verboseString)
     Output verbose string if asked for.
protected  booleanvmIsRunning()
    
protected  EventwaitForEvent(EventWaiter waiter, long time)
     Waits for an event to come in using the given waiter. Waits for the given time.
protected  voidwaitUntilReady()
     Waits until the program is ready to be tested.

Field Detail
RUN_FRAME_OFFSET
final protected static int RUN_FRAME_OFFSET(Code)



TIMEOUT
static int TIMEOUT(Code)



fBackEndPort
protected static int fBackEndPort(Code)



fBootPath
protected static String fBootPath(Code)



fClassPath
protected static String fClassPath(Code)



fConsoleErrorReader
protected AbstractReader fConsoleErrorReader(Code)



fConsoleReader
protected AbstractReader fConsoleReader(Code)



fEventReader
protected EventReader fEventReader(Code)



fInControl
protected boolean fInControl(Code)



fLaunchedProxy
protected Process fLaunchedProxy(Code)



fLaunchedVM
protected Process fLaunchedVM(Code)



fProxyCmd
protected static String fProxyCmd(Code)



fProxyErrorReader
protected AbstractReader fProxyErrorReader(Code)



fProxyReader
protected AbstractReader fProxyReader(Code)



fProxyerrFile
protected static String fProxyerrFile(Code)



fProxyoutFile
protected static String fProxyoutFile(Code)



fStderrFile
protected static String fStderrFile(Code)



fStdoutFile
protected static String fStdoutFile(Code)



fTargetAddress
protected static String fTargetAddress(Code)



fVM
protected com.sun.jdi.VirtualMachine fVM(Code)



fVMLauncherName
protected static String fVMLauncherName(Code)



fVMTraceFlags
protected static int fVMTraceFlags(Code)



fVMType
protected static String fVMType(Code)



fVerbose
protected static boolean fVerbose(Code)



fVmCmd
protected static String fVmCmd(Code)




Constructor Detail
AbstractJDITest
public AbstractJDITest()(Code)
Constructs a test case with a default name.




Method Detail
connectToVM
protected void connectToVM()(Code)
Conects to the target vm.



excludedTests
protected String[] excludedTests()(Code)
Returns the names of the tests that are known to not work By default, none are excluded.



getAccessWatchpointRequest
protected AccessWatchpointRequest getAccessWatchpointRequest()(Code)
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.



getAllMatchingTests
protected Vector getAllMatchingTests(String match)(Code)
Returns all tests that start with the given string. Returns a vector of String.



getArrayType
protected ArrayType getArrayType()(Code)
Returns the array type.



getBooleanArrayReference
protected ArrayReference getBooleanArrayReference()(Code)



getBooleanArrayType
protected ArrayType getBooleanArrayType()(Code)



getBooleanDoubleArrayReference
protected ArrayReference getBooleanDoubleArrayReference()(Code)



getBooleanDoubleArrayType
protected ArrayType getBooleanDoubleArrayType()(Code)



getBreakpointRequest
protected BreakpointRequest getBreakpointRequest()(Code)
Creates and returns a breakpoint request in the first instruction of the MainClass.triggerBreakpointEvent() method.



getBreakpointRequest
protected BreakpointRequest getBreakpointRequest(Location loc)(Code)
Creates a new breakpoinmt request for a user specified position
Parameters:
  loc - thel oc to set the breakpoint on a new breakpoint request or null if the location is invalid
since:
   3.3



getByteArrayReference
protected ArrayReference getByteArrayReference()(Code)
One-dimensional empty array reference getters



getByteArrayType
protected ArrayType getByteArrayType()(Code)
One-dimensional primitive array getters



getByteDoubleArrayReference
protected ArrayReference getByteDoubleArrayReference()(Code)
Two-dimensional array reference getters



getByteDoubleArrayType
protected ArrayType getByteDoubleArrayType()(Code)
Two-dimensional primitive array getters



getCharArrayReference
protected ArrayReference getCharArrayReference()(Code)



getCharArrayType
protected ArrayType getCharArrayType()(Code)



getCharDoubleArrayReference
protected ArrayReference getCharDoubleArrayReference()(Code)



getCharDoubleArrayType
protected ArrayType getCharDoubleArrayType()(Code)



getClass
protected ClassType getClass(String name)(Code)
Returns the class with the given name or null if not loaded.



getClassLoaderReference
protected ClassLoaderReference getClassLoaderReference()(Code)
Returns the class loader of org.eclipse.debug.jdi.tests.program.MainClass



getDoubleArrayReference
protected ArrayReference getDoubleArrayReference()(Code)



getDoubleArrayType
protected ArrayType getDoubleArrayType()(Code)



getDoubleDoubleArrayReference
protected ArrayReference getDoubleDoubleArrayReference()(Code)



getDoubleDoubleArrayType
protected ArrayType getDoubleDoubleArrayType()(Code)



getExceptionRequest
protected ExceptionRequest getExceptionRequest()(Code)
Creates and returns an exception request for uncaught exceptions.



getField
protected Field getField()(Code)
Returns the static field "fObject" in org.eclipse.debug.jdi.tests.program.MainClass



getField
protected Field getField(String fieldName)(Code)
Returns the field with the given name in org.eclipse.debug.jdi.tests.program.MainClass.



getFloatArrayReference
protected ArrayReference getFloatArrayReference()(Code)



getFloatArrayType
protected ArrayType getFloatArrayType()(Code)



getFloatDoubleArrayReference
protected ArrayReference getFloatDoubleArrayReference()(Code)



getFloatDoubleArrayType
protected ArrayType getFloatDoubleArrayType()(Code)



getFrame
protected StackFrame getFrame(int n)(Code)
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.



getIntArrayReference
protected ArrayReference getIntArrayReference()(Code)



getIntArrayType
protected ArrayType getIntArrayType()(Code)



getIntDoubleArrayReference
protected ArrayReference getIntDoubleArrayReference()(Code)



getIntDoubleArrayType
protected ArrayType getIntDoubleArrayType()(Code)



getInterfaceType
protected InterfaceType getInterfaceType()(Code)
Returns the interface type org.eclipse.debug.jdi.tests.program.Printable.



getLocalVariable
protected LocalVariable getLocalVariable()(Code)
Returns the variable "t" in the frame running MainClass.run().



getLocation
protected Location getLocation()(Code)
Returns the first location in MainClass.print(OutputStream).



getLongArrayReference
protected ArrayReference getLongArrayReference()(Code)



getLongArrayType
protected ArrayType getLongArrayType()(Code)



getLongDoubleArrayReference
protected ArrayReference getLongDoubleArrayReference()(Code)



getLongDoubleArrayType
protected ArrayType getLongDoubleArrayType()(Code)



getMainClass
protected ClassType getMainClass()(Code)
Returns the class org.eclipse.debug.jdi.tests.program.MainClass.



getMainThread
protected ThreadReference getMainThread()(Code)



getMethod
protected Method getMethod()(Code)
Returns the method "print(Ljava/io/OutputStream;)V" in org.eclipse.debug.jdi.tests.program.MainClass



getMethod
protected Method getMethod(String name, String signature)(Code)
Returns the method with the given name and signature in org.eclipse.debug.jdi.tests.program.MainClass



getMethod
protected Method getMethod(String className, String name, String signature)(Code)
Returns the method with the given name and signature in the given class.



getModificationWatchpointRequest
protected ModificationWatchpointRequest getModificationWatchpointRequest()(Code)
Creates and returns a modification watchpoint request for the field "fBool" in org.eclipse.debug.jdi.tests.program.MainClass. NOTE: This assumes that the VM can watch field modification.



getNonEmptyDoubleArrayReference
protected ArrayReference getNonEmptyDoubleArrayReference()(Code)
Returns another array reference.



getObjectArrayReference
protected ArrayReference getObjectArrayReference()(Code)
Returns an array reference.



getObjectReference
protected ObjectReference getObjectReference()(Code)
Returns the value of the static field "fObject" in org.eclipse.debug.jdi.tests.program.MainClass



getShortArrayReference
protected ArrayReference getShortArrayReference()(Code)



getShortArrayType
protected ArrayType getShortArrayType()(Code)



getShortDoubleArrayReference
protected ArrayReference getShortDoubleArrayReference()(Code)



getShortDoubleArrayType
protected ArrayType getShortDoubleArrayType()(Code)



getStaticAccessWatchpointRequest
protected AccessWatchpointRequest getStaticAccessWatchpointRequest()(Code)
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.



getStaticModificationWatchpointRequest
protected ModificationWatchpointRequest getStaticModificationWatchpointRequest()(Code)
Creates and returns a modification watchpoint request for the static field "fString" in org.eclipse.debug.jdi.tests.program.MainClass. NOTE: This assumes that the VM can watch field modification.



getStringReference
protected StringReference getStringReference()(Code)
Returns the value of the static field "fString" in org.eclipse.debug.jdi.tests.program.MainClass



getSystemType
protected ClassType getSystemType()(Code)
Returns the class java.lang.Object.



getThread
protected ThreadReference getThread()(Code)
Returns the thread contained in the static field "fThread" in org.eclipse.debug.jdi.tests.program.MainClass



getVMInfo
VMInformation getVMInfo()(Code)
Returns the VM info for this test.



killVM
protected void killVM()(Code)



launchTarget
protected void launchTarget()(Code)



launchTargetAndConnectToVM
protected void launchTargetAndConnectToVM()(Code)
Launches the target VM and connects to VM.



launchTargetAndStartProgram
protected void launchTargetAndStartProgram()(Code)
Launch target VM and start program in target VM.



localSetUp
abstract public void localSetUp()(Code)
Initializes the fields that are used by this test only.



localTearDown
public void localTearDown()(Code)
Makes sure the test leaves the VM in the same state it found it. Default is to do nothing.



parseArgs
protected static boolean parseArgs(String[] args)(Code)
Parses the given arguments and store them in this tests fields. Returns whether the parsing was successfull.



printUsage
protected static void printUsage()(Code)
Prints the various options to pass to the constructor.



resetField
protected void resetField()(Code)
Set the value of the "fBool" field back to its original value



resetStaticField
protected void resetStaticField()(Code)
Set the value of the "fString" field back to its original value



runSuite
protected void runSuite(String[] args)(Code)
Runs this test's suite with the given arguments.



setInControl
void setInControl(boolean inControl)(Code)
Sets the 'in control of the VM' flag for this test.



setUp
protected void setUp()(Code)
Init tests



setVMInfo
void setVMInfo(VMInformation info)(Code)
Sets the VM info for this test.



shutDownTarget
protected void shutDownTarget()(Code)
Shut down the target.



startProgram
protected void startProgram()(Code)
Starts the target program.



stopReaders
protected void stopReaders()(Code)
Stop console and event readers.



suite
protected Test suite()(Code)
Returns all tests



tearDown
protected void tearDown()(Code)
Undo the initialization of the test.



triggerAndWait
protected Event triggerAndWait(EventRequest request, String eventType, boolean shouldGo)(Code)
Triggers and waits for the given event to come in. Let the thread go if asked. Throws an Error if the event didn't come in after TIMEOUT ms



triggerAndWait
protected Event triggerAndWait(EventRequest request, String eventType, boolean shouldGo, long time)(Code)
Triggers and waits for the given event to come in. Let the thread go if asked. Returns null if the event didn't come in after the given amount of time (in ms)



triggerEvent
protected void triggerEvent(String eventType)(Code)
Triggers the given type of event. See the MainClass for details on types of event.



triggerStepAndWait
protected StepEvent triggerStepAndWait()(Code)
Triggers a step event and waits for it to come in.



triggerStepAndWait
protected StepEvent triggerStepAndWait(ThreadReference thread, int gran, int depth)(Code)



triggerStepAndWait
protected StepEvent triggerStepAndWait(ThreadReference thread, EventRequest eventRequest, int timeout)(Code)



verbose
protected void verbose(String verboseString)(Code)
Output verbose string if asked for.



vmIsRunning
protected boolean vmIsRunning()(Code)



waitForEvent
protected Event waitForEvent(EventWaiter waiter, long time)(Code)
Waits for an event to come in using the given waiter. Waits for the given time. If it times out, returns null.



waitUntilReady
protected void waitUntilReady()(Code)
Waits until the program is ready to be tested. The default behaviour is to wait until the "Test Thread" throws and catches an exception.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.