|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.ourgrid.common.fd.AbstractFailureDetectorTest
public class AbstractFailureDetectorTest
Test case for AbstractFailureDetector
.
AbstractFailureDetector
Constructor Summary | |
---|---|
AbstractFailureDetectorTest()
|
Method Summary | |
---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testGetFailureDetectorAddress()
|
void |
testMonitorableStateChanged()
Test if the FailureDetector is notifying when a Monitorade changes it state. |
void |
testMonitorableStateChanged2()
Test if the FailureDetector is notifying when a Monitorade changes it state. |
void |
testRegistter()
Verfiying if a monitorable is invoked. |
void |
testUnregister1()
The same test above, but with two Monitorables and one
Notifiable . |
void |
testUnregister2()
Tests if the last interested in a monitorable unregister, then this monitorable must not be monitored any more. |
void |
testUnregister3()
Now, two Notifiable are interested in the same
Monitorable , so, if one Notifiable
unregister, the Monitorable must continue to be monitored. |
void |
testWhenReencarnationNumberChanges()
In this test the state will chance once but the name (that will be a encarnationNumber) |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface junit.framework.Test |
---|
countTestCases, run |
Constructor Detail |
---|
public AbstractFailureDetectorTest()
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public void testRegistter() throws java.lang.Exception
java.lang.Exception
- If anything wrong occurspublic void testUnregister1() throws java.lang.Exception
Monitorables
and one
Notifiable
. So, when the notifiable unregister the
interest in one, the other must continue to be monitored.
java.lang.Exception
- If anything wrong occurspublic void testUnregister2() throws java.lang.Exception
java.lang.Exception
- If anything wrong occurspublic void testUnregister3() throws java.lang.Exception
Notifiable
are interested in the same
Monitorable
, so, if one Notifiable
unregister, the Monitorable
must continue to be monitored.
java.lang.Exception
- If anything wrong occurspublic void testMonitorableStateChanged() throws java.lang.Exception
Monitorade
changes it state.
java.lang.Exception
- If anything wrong occurspublic void testMonitorableStateChanged2() throws java.lang.Exception
Monitorade
changes it state. Now the state will change
twice
java.lang.Exception
- If anything wrong occurspublic void testWhenReencarnationNumberChanges() throws java.lang.Exception
java.lang.Exception
- If anything wrong occurspublic void testGetFailureDetectorAddress() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |