001    /*
002     * Created by IntelliJ IDEA.
003     * User: rrmohan
004     * Date: Jan 19, 2003
005     * Time: 1:53:09 PM
006     * To change template for new class use 
007     * Code Style | Class Templates options (Tools | IDE Options).
008     */
009    package aima.test.coretest;
010    
011    import junit.framework.TestCase;
012    import aima.basic.XYLocation;
013    
014    /**
015     * @author Ravi Mohan
016     * 
017     */
018    public class XYLocationTest extends TestCase {
019            public XYLocationTest(String name) {
020                    super(name);
021            }
022    
023            public void testXYLocationAtributeSettingOnConstruction() {
024                    XYLocation loc = new XYLocation(3, 4);
025                    assertEquals(3, loc.getXCoOrdinate());
026                    assertEquals(4, loc.getYCoOrdinate());
027            }
028    
029            public void testEquality() {
030                    XYLocation loc1 = new XYLocation(3, 4);
031                    XYLocation loc2 = new XYLocation(3, 4);
032                    assertEquals(loc1, loc2);
033            }
034    }