|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jsequnit.diagram.TestMethodRunner
public abstract class TestMethodRunner
Abstract class executing a given method in a separate Java virtual machine. It implements the design pattern "template method", where subclasses have to provide the debug VM.
Constructor Summary | |
---|---|
TestMethodRunner()
|
Method Summary | |
---|---|
com.sun.jdi.VirtualMachine |
getDebugVm(String qualifiedTestMethod,
String testExecutionClasspath)
Setup a new Java virtual machine that is connected for debugging purposes. |
protected com.sun.jdi.connect.AttachingConnector |
getSocketAttachingConnector()
Returns the Socket Launcher that is capable to connect to a running VM for debugging. |
protected com.sun.jdi.connect.LaunchingConnector |
getSunCommandLineLauncher()
Return the Sun VM Launcher that is capable to execute a Java program from command line before connecting to it. |
protected abstract com.sun.jdi.VirtualMachine |
setupDebugVM(String qualifiedTestMethod,
String testExecutionClasspath)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestMethodRunner()
Method Detail |
---|
protected abstract com.sun.jdi.VirtualMachine setupDebugVM(String qualifiedTestMethod, String testExecutionClasspath)
public com.sun.jdi.VirtualMachine getDebugVm(String qualifiedTestMethod, String testExecutionClasspath)
qualifiedTestMethod
- The fully qualified name of a test method that is executed
in the target virtual machine.testExecutionClasspath
- The classpath used to execute the qualifiedTestMethod
protected com.sun.jdi.connect.LaunchingConnector getSunCommandLineLauncher()
SunCommandLineLauncher
protected com.sun.jdi.connect.AttachingConnector getSocketAttachingConnector()
SocketAttachingConnector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |