Test of getChildren method, of class Place.
()
| 760 | * Test of getChildren method, of class Place. |
| 761 | */ |
| 762 | @Test |
| 763 | public void testGetChildren() { |
| 764 | System.out.println("getChildren"); |
| 765 | |
| 766 | Layer layer2 = new Layer(world); |
| 767 | Layer layer3 = new Layer(world); |
| 768 | Place p1 = new Place("Child", 0, 0, layer2); |
| 769 | Place p2 = new Place("Child", 0, 0, layer3); |
| 770 | Place instance = new Place("MyPlace", 0, 0, layer); |
| 771 | |
| 772 | assertNotNull(instance.getChildren()); |
| 773 | assertEquals(0, instance.getChildren().size()); |
| 774 | |
| 775 | instance.connectChild(p1); |
| 776 | instance.connectChild(p2); |
| 777 | |
| 778 | assertEquals(2, instance.getChildren().size()); |
| 779 | assertTrue(instance.getChildren().contains(p1)); |
| 780 | assertTrue(instance.getChildren().contains(p2)); |
| 781 | } |
| 782 | |
| 783 | /** |
| 784 | * Test of getParents method, of class Place. |
nothing calls this directly
no test coverage detected