Savarese Software Research

com.savarese.algorithms.spatial
Class GenericPointTest

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

public class GenericPointTest
extends TestCase

GenericPointTest tests the GenericPoint class.

Author:
Daniel F. Savarese

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

Copyright © 2004-2005 Savarese Software Research and Daniel F. Savarese. All Rights Reserved.