net.groboclown.junit.jpda.v1
Class RemoteAsyncTestInstance

java.lang.Object
  |
  +--net.groboclown.junit.jpda.v1.RemoteAsyncTestInstance

public class RemoteAsyncTestInstance
extends Object

Wrapper for easier access to an AsyncTest instance.


Field Summary
private  ObjectReference instance
           
private  MainThreadHandler mainThread
           
private  ReferenceType ref
           
 BooleanValue TRUE
           
 
Constructor Summary
RemoteAsyncTestInstance(MainThreadHandler mainThread, BooleanValue TRUE)
           
 
Method Summary
protected  Method findMethod(String name, String sig)
          Find the method with the given name.
 void finishedTest()
          Tell the tests on the remote VM that they have finished.
protected static ObjectReference getAsyncTestReference(MainThreadHandler mt)
          Find the AsyncTest instance on the remote VM.
 Field getIsTestReadyField(int testIndex)
           
 ReferenceType getReferenceType()
           
 ObjectReference getRemoteInstance()
           
 boolean isTestReady(int testIndex)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

instance

private ObjectReference instance

ref

private ReferenceType ref

mainThread

private MainThreadHandler mainThread

TRUE

public BooleanValue TRUE
Constructor Detail

RemoteAsyncTestInstance

public RemoteAsyncTestInstance(MainThreadHandler mainThread,
                               BooleanValue TRUE)
Method Detail

getRemoteInstance

public ObjectReference getRemoteInstance()

getReferenceType

public ReferenceType getReferenceType()

getIsTestReadyField

public Field getIsTestReadyField(int testIndex)

isTestReady

public boolean isTestReady(int testIndex)

finishedTest

public void finishedTest()
Tell the tests on the remote VM that they have finished.

findMethod

protected Method findMethod(String name,
                            String sig)
Find the method with the given name. If there are more than one of these methods, the first one is returned.

getAsyncTestReference

protected static ObjectReference getAsyncTestReference(MainThreadHandler mt)
Find the AsyncTest instance on the remote VM.


Written under the LGPL