Package org.scotlandyard.impl.engine.boardmap

Examples of org.scotlandyard.impl.engine.boardmap.CoordinateImpl


  public final void testEqualsObject() throws GameException{
    Link other = new LinkImpl(boardMap, TransportationMethod.BUS, a, b);
    Assert.assertTrue(link.equals(other));
    Link other2 = new LinkImpl(boardMap, TransportationMethod.TAXI, a, b);
    Assert.assertFalse(link.equals(other2));
    Link other3 = new LinkImpl(boardMap, TransportationMethod.BUS, a, new CoordinateImpl(boardMap,11,22));
    Assert.assertFalse(link.equals(other3));
    Link other4 = new LinkImpl(boardMap, TransportationMethod.BUS, new CoordinateImpl(boardMap,11,20), b);
    Assert.assertFalse(link.equals(other4));
  }
View Full Code Here


  @Test(expected=Exception.class)//TODO add description here
  public final void testLinkImpl2() throws Exception{
    Assert.assertNull(new LinkImpl(
        null,
        TransportationMethod.BUS,
        new CoordinateImpl(boardMap, 2, 2),
        new CoordinateImpl(boardMap, 1, 1)
    ));
   
  }
View Full Code Here

  @Test(expected=Exception.class)//TODO add description here
  public final void testLinkImpl3() throws Exception{
    Assert.assertNull(new LinkImpl(
        boardMap,
        null,
        new CoordinateImpl(boardMap, 2, 2),
        new CoordinateImpl(boardMap, 1, 1)
    ));
   
  }
View Full Code Here

  public final void testLinkImpl4() throws Exception{
    Assert.assertNull(new LinkImpl(
        boardMap,
        TransportationMethod.BUS,
        null,
        new CoordinateImpl(boardMap, 1, 1)
    ));
  }
View Full Code Here

  @Test(expected=Exception.class)//TODO add description here
  public final void testLinkImpl5() throws Exception{
    Assert.assertNull(new LinkImpl(
        boardMap,
        TransportationMethod.BUS,
        new CoordinateImpl(boardMap, 2, 2),
        null
    ));
  }
View Full Code Here

  @Test(expected=Exception.class)//TODO add description here
  public final void testLinkImpl6() throws Exception{
    Assert.assertNull(new LinkImpl(
        boardMap,
        TransportationMethod.BUS,
        new CoordinateImpl(boardMap, 12, 22),
        new CoordinateImpl(boardMap2, 12, 22)
    ));
  }
View Full Code Here

  @Test(expected=Exception.class)//TODO add description here
  public final void testLinkImpl7() throws Exception{
    Assert.assertNull(new LinkImpl(
        boardMap,
        TransportationMethod.BUS,
        new CoordinateImpl(boardMap2, 12, 22),
        new CoordinateImpl(boardMap, 12, 22)
    ));
  }
View Full Code Here

  @Test(expected=Exception.class)//TODO add description here
  public final void testLinkImpl8() throws Exception{
    Assert.assertNull(new LinkImpl(
        boardMap2,
        TransportationMethod.BUS,
        new CoordinateImpl(boardMap, 12, 22),
        new CoordinateImpl(boardMap, 12, 22)
    ));
  }
View Full Code Here

TOP

Related Classes of org.scotlandyard.impl.engine.boardmap.CoordinateImpl

Copyright © 2018 www.massapicom. 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.