|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.peerunit.TestCaseImpl
public abstract class TestCaseImpl
An abstract implementation of TestCase interface. This class make available in the test case testing global variables who can't be known before runtime. A testing engineer will inherit from this class for define his test case.
TestCase| Constructor Summary | |
|---|---|
TestCaseImpl()
|
|
| Method Summary | |
|---|---|
void |
clear()
Used to clear the Collection of testing global variables |
boolean |
containsKey(java.lang.Integer key)
Returns true if the key key can be map in the global variables cache, return false else. |
java.lang.Object |
get(java.lang.Integer key)
Used to retrieve a testing global variable. |
java.util.Map<java.lang.Integer,java.lang.Object> |
getCollection()
Used to retrieve all peers |
int |
getId()
Return the id of the tester executing the test. |
int |
getPeerName()
Deprecated. |
void |
kill()
Kill the tester executing the test case |
void |
put(java.lang.Integer key,
java.lang.Object object)
Allow to test case to stock global variables who will accessed by all others participants through his tester. |
void |
setTester(Tester t)
Set the tester in centralized architecture executing the test |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestCaseImpl()
| Method Detail |
|---|
public void setTester(Tester t)
setTester in interface TestCaset - the tester> instancepublic int getId()
@Deprecated
public int getPeerName()
throws java.rmi.RemoteException
java.rmi.RemoteException - because the method is distant
public void put(java.lang.Integer key,
java.lang.Object object)
key - the key of objectobject - the variable to stock
public java.util.Map<java.lang.Integer,java.lang.Object> getCollection()
throws java.rmi.RemoteException
java.rmi.RemoteException - because the method is distantpublic void kill()
public java.lang.Object get(java.lang.Integer key)
key - a key
public boolean containsKey(java.lang.Integer key)
throws java.rmi.RemoteException
key - a key
java.rmi.RemoteException - because the method is distant
public void clear()
throws java.rmi.RemoteException
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||