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. *

* Copyright (c) 2002-2019 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights * reserved. See for project information * https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can * be found at * https://simulation.tudelft.nl/dsol/3.0/license.html. *

* @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); } }