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

Method testGetFlag

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

Test of getFlag method, of class Place.

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

setFlagMethod · 0.95
getFlagMethod · 0.95

Tested by

no test coverage detected