1   /*
2    * @(#) D2Test.java Aug 26, 2003
3    * 
4    * Copyright (c) 2003 Delft University of Technology Jaffalaan 5, 2628 BX Delft,
5    * the Netherlands All rights reserved.
6    * 
7    * This software is proprietary information of Delft University of Technology
8    * The code is published under the General Public License
9    */
10  package nl.tudelft.simulation.dsol.animation;
11  
12  import junit.framework.Assert;
13  import junit.framework.TestCase;
14  import nl.tudelft.simulation.language.d3.CartesianPoint;
15  
16  /***
17   * This class defines the JUnit test for the D2Test <br>
18   * (c) copyright 2003 <a href="http://www.simulation.tudelft.nl">Delft
19   * University of Technology </a>, the Netherlands. <br>
20   * See for project information <a
21   * href="http://www.simulation.tudelft.nl">www.simulation.tudelft.nl </a> <br>
22   * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
23   * License (GPL) </a>, no warranty <br>
24   * 
25   * @version 2.0 21.09.2003 <br>
26   * @author <a href="http://www.tbm.tudelft.nl/webstaf/peterja/index.htm">Peter
27   *         Jacobs </a>, <a
28   *         href="http://www.tbm.tudelft.nl/webstaf/alexandv/index.htm">Alexander
29   *         Verbraeck </a>
30   */
31  public class AnimationTest extends TestCase
32  {
33  	/*** TEST_METHOD_NAME refers to the name of the test method */
34  	public static final String TEST_METHOD_NAME = "test";
35  
36  	/***
37  	 * constructs a new D2Test
38  	 */
39  	public AnimationTest()
40  	{
41  		super(TEST_METHOD_NAME);
42  	}
43  
44  	/***
45  	 * tests the TreeMapEventListOld
46  	 */
47  	public void test()
48  	{
49  		CartesianPoint point1 = new CartesianPoint(1.0, 1.0, 1.0);
50  		CartesianPoint point2 = new CartesianPoint(1.0, 1.0, 1.0);
51  
52  		Assert.assertTrue(point1.distance(point2) == 0);
53  		Assert.assertNotSame(point1, point2);
54  	}
55  }