|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sourceforge.jemm.client.TrackingDatabaseTest
public class TrackingDatabaseTest
Test cases for the TrackingDatabase.
Based on the original work in the refactored ReferenceCleaner.
| Constructor Summary | |
|---|---|
TrackingDatabaseTest()
|
|
| Method Summary | |
|---|---|
void |
acquireReleaseLock()
Check that acquire/release lock correctly encode the id values. |
void |
addRemoveListener()
Test that the add/remove of listeners is correctly passed through. |
void |
doubleAddListener()
Test that if a listener is added twice an error is generated. |
void |
getObjectTest()
|
void |
idClearCalled()
Check that if a reference is cleared by the client, the gc event is captured and the database passes on a refereceCleared event to the lower levels. |
void |
idStillTrackedNoClearCalled()
Check that if the returned reference is held by the caller, it is not removed from the active pool. |
void |
illegalClientSideID()
Test to ensure that passing in normal ids into the TrackingDatabase by higher levels generates an error. |
void |
illegalReferenceCleared()
Test to ensure an exception is thrown if a higher up class calls referenceCleared(), all reference tracking is managed by the TrackingDatabase. |
void |
illegalTypeReturn()
Ensure that the underlying database cannot accidently return tracked ids. |
void |
listenerTest()
Test that the listener notications are passed through and translated. |
void |
nullRootGet()
Check that a getRoot that contains null works correctly. |
void |
nullRootSet()
Test that a setRoot(X,null) works correctly. |
void |
setRootIfNull()
Check that setRootIfNull correctly encodes and decodes fields |
void |
setUp()
Pre-test setup. |
void |
syncObject()
Check the synchronizeObject correctly encodes and decodes the request fields. |
void |
tearDown()
Post test cleanup |
void |
typeRequestTest()
Test that type request/responses are correctly encoded and decoded. |
void |
validSetRootTest()
Test that the setRoot call correctly encodes/decodes ids. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrackingDatabaseTest()
| Method Detail |
|---|
public void setUp()
public void tearDown()
public void idClearCalled()
throws java.lang.InterruptedException
java.lang.InterruptedException - On wait error.public void illegalClientSideID()
public void nullRootGet()
public void nullRootSet()
public void illegalReferenceCleared()
public void validSetRootTest()
public void typeRequestTest()
public void listenerTest()
public void illegalTypeReturn()
public void getObjectTest()
public void idStillTrackedNoClearCalled()
throws java.lang.InterruptedException
java.lang.InterruptedException - On wait error.
public void acquireReleaseLock()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void setRootIfNull()
public void syncObject()
public void doubleAddListener()
public void addRemoveListener()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||