Package rinde.sim.core.model.pdp.PDPModelTest

Examples of rinde.sim.core.model.pdp.PDPModelTest.TestParcel


  }

  @Test(expected = IllegalArgumentException.class)
  public void addPackageInFail5() {
    final Depot d = new TestDepot(10);
    final Parcel p1 = new TestParcel(new Point(0, 0), 0, 0, 11);
    model.register(p1);
    model.register(d);
    rm.addObjectAt(d, new Point(0, 0));
    model.addParcelIn(d, p1);
  }
View Full Code Here


  /**
   * Tests that the register call back injects the possibly decorated instance.
   */
  @Test
  public void register() {
    final TestParcel p = new TestParcel(new Point(0, 0), 0, 0, 1.0);
    model.register(p);
    assertSame(model, p.pdpModel.get());

    final TestDepot d = new TestDepot(10);
    model.register(d);
View Full Code Here

  /**
   * Cannot register the same parcel twice.
   */
  @Test(expected = IllegalArgumentException.class)
  public void registerFail1() {
    final Parcel p = new TestParcel(new Point(0, 0), 0, 0, 1.0);
    model.register(p);
    model.register(p);
  }
View Full Code Here

TOP

Related Classes of rinde.sim.core.model.pdp.PDPModelTest.TestParcel

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.