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

Method testGetInfoRing

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

Test of getInfoRing method, of class Place.

()

Source from the content-addressed store, hash-verified

345 * Test of getInfoRing method, of class Place.
346 */
347 @Test
348 public void testGetInfoRing() {
349 System.out.println("getInfoRing");
350
351 Place instance = new Place("MyPlace", 0, 0, layer);
352 // default value
353 assertNull(instance.getInfoRing());
354
355 InformationColor expResult = new InformationColor("description", Color.yellow);
356 instance.setInfoRing(expResult);
357 InformationColor result = instance.getInfoRing();
358 assertEquals(expResult, result);
359 }
360
361 /**
362 * Test of setInfoRing method, of class Place.

Callers

nothing calls this directly

Calls 2

getInfoRingMethod · 0.95
setInfoRingMethod · 0.95

Tested by

no test coverage detected