Package src

Examples of src.StorageHouse


public class StorageHouseTest
{
  @Test
  public void shouldCreateStorageHouse() {
    StorageHouse storageHouse = new StorageHouse(4);
    assertEquals(4, storageHouse.getCapacity());
  }
View Full Code Here


    assertEquals(4, storageHouse.getCapacity());
  }
 
  @Test
  public void canPrintTheState() {
    StorageHouse sh = new StorageHouse(1);
    assertEquals("0: a\n", sh.printState());
  }
View Full Code Here

  }
 
  @Test
  public void canPrintStateWithCapacity2()
  {
    StorageHouse storageHouse = new StorageHouse(2);
    assertEquals("0: a\n1: b\n", storageHouse.printState());
  }
View Full Code Here

  }
 
  @Test @Ignore("Needs to have remove working on Column")
  public void canMoveBoxAOntoBoxB()
  {
    StorageHouse storageHouse = new StorageHouse(2);
    storageHouse.moveOnto("a", "b");
    assertEquals("0:\n1: b a\n", storageHouse.printState());
  }
View Full Code Here

TOP

Related Classes of src.StorageHouse

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.