Test of getFlag method, of class Place.
()
| 620 | * Test of getFlag method, of class Place. |
| 621 | */ |
| 622 | @Test |
| 623 | public void testGetFlag() { |
| 624 | System.out.println("getFlag"); |
| 625 | |
| 626 | Place instance = new Place("MyPlace", 0, 0, layer); |
| 627 | |
| 628 | String key = "abc"; |
| 629 | boolean state = false; |
| 630 | instance.setFlag(key, state); |
| 631 | boolean result = instance.getFlag(key); |
| 632 | assertEquals(state, result); |
| 633 | |
| 634 | // test null |
| 635 | assertFalse(instance.getFlag(null)); |
| 636 | } |
| 637 | |
| 638 | /** |
| 639 | * Test of setFlag method, of class Place. |