Test of removePlaceGroup method, of class World.
()
| 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. |
nothing calls this directly
no test coverage detected