Test of getFlags method, of class Place.
()
| 665 | * Test of getFlags method, of class Place. |
| 666 | */ |
| 667 | @Test |
| 668 | public void testGetFlags() { |
| 669 | System.out.println("getFlags"); |
| 670 | |
| 671 | Place instance = new Place("MyPlace", 0, 0, layer); |
| 672 | TreeMap<String, Boolean> expResult = new TreeMap<>(); |
| 673 | instance.setFlag("a", true); |
| 674 | expResult.put("a", true); |
| 675 | instance.setFlag("b", false); |
| 676 | expResult.put("b", false); |
| 677 | instance.setFlag("foobar", true); |
| 678 | expResult.put("foobar", true); |
| 679 | TreeMap<String, Boolean> result = instance.getFlags(); |
| 680 | assertEquals(expResult, result); |
| 681 | } |
| 682 | |
| 683 | /** |
| 684 | * Test of connectChild method, of class Place. |