de.smartics.exceptions.id
Class UuidExceptionIdTest

Package class diagram package UuidExceptionIdTest
java.lang.Object
  extended by de.smartics.exceptions.id.UuidExceptionIdTest

public class UuidExceptionIdTest
     
     
extends Object

Tests UuidExceptionId.

Author:
Robert Reiner

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

UuidExceptionIdTest

public UuidExceptionIdTest()
Method Detail

testConstruction

public void testConstruction()
Tests generating an instance.


testHashCode

public void testHashCode()
Tests calling UuidExceptionId.hashCode() succeeds.


testToString

public void testToString()
Tests calling UuidExceptionId.toString() succeeds.


testEqualsIdentity

public void testEqualsIdentity()
Tests calling UuidExceptionId.equals(Object) succeeds in the case of identity.


testEqualsNull

public void testEqualsNull()
Tests calling UuidExceptionId.equals(Object) fails in the case of the null value.


testEqualsOtherClass

public void testEqualsOtherClass()
Tests calling UuidExceptionId.equals(Object) fails when compared with an instance of another class.


testEqualsTrue

public void testEqualsTrue()
Tests calling UuidExceptionId.equals(Object) succeeds when two instances are compared with the same UUID.


testEqualsFalse

public void testEqualsFalse()
Tests calling 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.



Copyright © 2007-$2011 Kronseder & Reiner GmbH - smartics. All Rights Reserved.