111213141516171819
door.open(); assertSame(Door.OPEN, door.state); } public void testClosedLock() { Door door = new Door(); door.lock(); assertSame(Door.LOCKED, door.state); }
171819202122232425262728
door.lock(); assertSame(Door.LOCKED, door.state); } public void testClosedClose() { Door door = new Door(); try { door.close(); fail("expected exception"); } catch (IllegalStateException e) { } }
116117118119120121122123124125126
} if (owner.isPacketSpam()) { return; } owner.setSpam(true); new Door(owner, object).pickLock(); return; } switch (object.getID()) { case 487: