MCPcopy Create free account
hub / github.com/Neop/mudmap2 / testRemovePlaceGroup

Method testRemovePlaceGroup

src/test/java/mudmap2/backend/WorldTest.java:678–693  ·  view source on GitHub ↗

Test of removePlaceGroup method, of class World.

()

Source from the content-addressed store, hash-verified

676 * Test of removePlaceGroup method, of class World.
677 */
678 @Test
679 public void testRemovePlaceGroup() {
680 System.out.println("removePlaceGroup");
681
682 World instance = new World("MyWorld");
683
684 PlaceGroup a1 = new PlaceGroup("myGroup", Color.yellow);
685 PlaceGroup a2 = new PlaceGroup("Second Area", Color.yellow);
686 instance.addPlaceGroup(a1);
687 instance.addPlaceGroup(a2);
688
689 instance.removePlaceGroup(a1);
690
691 assertFalse(instance.getPlaceGroups().contains(a1));
692 assertTrue(instance.getPlaceGroups().contains(a2));
693 }
694
695 /**
696 * Test of getInformationColors method, of class World.

Callers

nothing calls this directly

Calls 4

addPlaceGroupMethod · 0.95
removePlaceGroupMethod · 0.95
getPlaceGroupsMethod · 0.95
containsMethod · 0.65

Tested by

no test coverage detected