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

Method testGetFlags

src/test/java/mudmap2/backend/PlaceTest.java:667–681  ·  view source on GitHub ↗

Test of getFlags method, of class Place.

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

setFlagMethod · 0.95
getFlagsMethod · 0.95
putMethod · 0.80

Tested by

no test coverage detected