Package aima.test.core.unit.util.datastructure

Source Code of aima.test.core.unit.util.datastructure.XYLocationTest

package aima.test.core.unit.util.datastructure;

import org.junit.Assert;
import org.junit.Test;

import aima.core.util.datastructure.XYLocation;

/**
* @author Ravi Mohan
*
*/
public class XYLocationTest {

  @Test
  public void testXYLocationAtributeSettingOnConstruction() {
    XYLocation loc = new XYLocation(3, 4);
    Assert.assertEquals(3, loc.getXCoOrdinate());
    Assert.assertEquals(4, loc.getYCoOrdinate());
  }

  @Test
  public void testEquality() {
    XYLocation loc1 = new XYLocation(3, 4);
    XYLocation loc2 = new XYLocation(3, 4);
    Assert.assertEquals(loc1, loc2);
  }
}
TOP

Related Classes of aima.test.core.unit.util.datastructure.XYLocationTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.