Savarese Software Research Corporation

com.savarese.spatial
Class GenericPointTest

java.lang.Object
  extended by TestCase
      extended by com.savarese.spatial.GenericPointTest

public class GenericPointTest
extends TestCase

GenericPointTest tests the GenericPoint class.


Constructor Summary
GenericPointTest()
           
 
Method Summary
 void testClone()
          Instantiates several GenericPoint instances and verifies that they are equal to their clones and that their hash codes are the same.
 void testConstructor()
          Instantiates several GenericPoint instances in succession and verifies that all getter methods return results equivalent to the constructor parameters.
 void testEquals()
          Tests the equals method.
 void testToString()
          Instantiates several GenericPoint instances and verifies that invoking toString() produces an expected value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericPointTest

public GenericPointTest()
Method Detail

testConstructor

public void testConstructor()
Instantiates several GenericPoint instances in succession and verifies that all getter methods return results equivalent to the constructor parameters.


testToString

public void testToString()
Instantiates several GenericPoint instances and verifies that invoking toString() produces an expected value.


testClone

public void testClone()
Instantiates several GenericPoint instances and verifies that they are equal to their clones and that their hash codes are the same.


testEquals

public void testEquals()
Tests the equals method.


Savarese Software Research Corporation

Copyright © 2001-2005 Daniel F. Savarese
Copyright © 2006-2010 Savarese Software Research Corporation