de.smartics.exceptions.id
Class LongExceptionIdTest

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

public class LongExceptionIdTest
     
     
extends Object

Tests LongExceptionId.

Author:
Robert Reiner

Constructor Summary
LongExceptionIdTest()
           
 
Method Summary
 void testConstruction()
          Tests generating an instance.
 void testEqualsFalse()
          Tests calling LongExceptionId.equals(Object) fails when two different instances are compared.
 void testEqualsIdentity()
          Tests calling LongExceptionId.equals(Object) succeeds in the case of identity.
 void testEqualsNull()
          Tests calling LongExceptionId.equals(Object) fails in the case of the null value.
 void testEqualsOtherClass()
          Tests calling LongExceptionId.equals(Object) fails when compared with an instance of another class.
 void testEqualsTrue()
          Tests calling LongExceptionId.equals(Object) succeeds when two instances are compared with the same ID.
 void testHashCode()
          Tests calling LongExceptionId.hashCode() succeeds.
 void testToString()
          Tests calling LongExceptionId.toString() succeeds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongExceptionIdTest

public LongExceptionIdTest()
Method Detail

testConstruction

public void testConstruction()
Tests generating an instance.


testHashCode

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


testToString

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


testEqualsIdentity

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


testEqualsNull

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


testEqualsOtherClass

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


testEqualsTrue

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


testEqualsFalse

public void testEqualsFalse()
Tests calling LongExceptionId.equals(Object) fails when two different instances are compared.



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