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

Method testSetInfoRing

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

Test of setInfoRing method, of class Place.

()

Source from the content-addressed store, hash-verified

362 * Test of setInfoRing method, of class Place.
363 */
364 @Test
365 public void testSetInfoRing() {
366 System.out.println("setInfoRing");
367
368 Place instance = new Place("MyPlace", 0, 0, layer);
369
370 InformationColor infoCol = new InformationColor("description", Color.yellow);
371 instance.setInfoRing(infoCol);
372 InformationColor result = instance.getInfoRing();
373 assertEquals(infoCol, result);
374
375 // test null
376 instance.setInfoRing(null);
377 result = instance.getInfoRing();
378 assertEquals(null, result);
379 }
380
381 /**
382 * Test of getComments method, of class Place.

Callers

nothing calls this directly

Calls 2

setInfoRingMethod · 0.95
getInfoRingMethod · 0.95

Tested by

no test coverage detected