|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.exceptions.id.UuidExceptionIdTest
public class UuidExceptionIdTest
Tests UuidExceptionId
.
Constructor Summary | |
---|---|
UuidExceptionIdTest() |
Method Summary | |
---|---|
void |
testConstruction() Tests generating an instance. |
void |
testEqualsFalse() Tests calling UuidExceptionId.equals(Object) fails when two instances are compared. |
void |
testEqualsIdentity() Tests calling UuidExceptionId.equals(Object) succeeds in the case of identity. |
void |
testEqualsNull() Tests calling UuidExceptionId.equals(Object) fails in the case of the null value. |
void |
testEqualsOtherClass() Tests calling UuidExceptionId.equals(Object) fails when compared with an instance of another class. |
void |
testEqualsTrue() Tests calling UuidExceptionId.equals(Object) succeeds when two instances are compared with the same UUID. |
void |
testHashCode() Tests calling UuidExceptionId.hashCode() succeeds. |
void |
testToString() Tests calling UuidExceptionId.toString() succeeds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UuidExceptionIdTest()
Method Detail |
---|
public void testConstruction()
public void testHashCode()
UuidExceptionId.hashCode()
succeeds.
public void testToString()
UuidExceptionId.toString()
succeeds.
public void testEqualsIdentity()
UuidExceptionId.equals(Object)
succeeds in the case of identity.
public void testEqualsNull()
UuidExceptionId.equals(Object)
fails in the case of the
null
value.
public void testEqualsOtherClass()
UuidExceptionId.equals(Object)
fails when compared with an instance of another class.
public void testEqualsTrue()
UuidExceptionId.equals(Object)
succeeds when two instances are compared with the same UUID.
public void testEqualsFalse()
UuidExceptionId.equals(Object)
fails when two instances are compared. This is a little tricky since the random generator should not let us down, but the test may fail if it does.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |