package nl.tudelft.simulation.dsol.animation;
import junit.framework.Assert;
import junit.framework.TestCase;
import nl.tudelft.simulation.language.d3.CartesianPoint;
/**
* This class defines the JUnit test for the D2Test
* (c) copyright 2002-2005 Delft University of Technology , the
* Netherlands.
* See for project information www.simulation.tudelft.nl
* License of use: Lesser General Public License (LGPL) , no
* warranty.
* @version 2.0 21.09.2003
* @author Peter Jacobs , Alexander Verbraeck
*/
public class AnimationTest extends TestCase
{
/** TEST_METHOD_NAME refers to the name of the test method. */
public static final String TEST_METHOD_NAME = "test";
/**
* constructs a new D2Test.
*/
public AnimationTest()
{
super(TEST_METHOD_NAME);
}
/**
* tests the TreeMapEventListOld
*/
public void test()
{
CartesianPoint point1 = new CartesianPoint(1.0, 1.0, 1.0);
CartesianPoint point2 = new CartesianPoint(1.0, 1.0, 1.0);
Assert.assertTrue(point1.distance(point2) == 0);
Assert.assertNotSame(point1, point2);
}
}