Fence extends BaseObject { public Fence(Tile parent, String location, boolean isGate) { super("fence", parent); this.location = location; this.isGate = isGate; gateOpen = false; } Fence(Tile parent, String location, boolean isGate); void toggleGate(); boolean isGateOpen(); @Override String getTileType();  }
@Test public void testFence() { Tile testTile = new Tile(0, 0, 1); Fence fence = new Fence(testTile, null, false); assertEquals(true, fence.isClearable()); }