89101112131415
public class StorageHouseTest { @Test public void shouldCreateStorageHouse() { StorageHouse storageHouse = new StorageHouse(4); assertEquals(4, storageHouse.getCapacity()); }
1415161718192021
assertEquals(4, storageHouse.getCapacity()); } @Test public void canPrintTheState() { StorageHouse sh = new StorageHouse(1); assertEquals("0: a\n", sh.printState()); }
2122232425262728
} @Test public void canPrintStateWithCapacity2() { StorageHouse storageHouse = new StorageHouse(2); assertEquals("0: a\n1: b\n", storageHouse.printState()); }
282930313233343536
} @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()); }