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

Method testGetPathColors

src/test/java/mudmap2/backend/WorldTest.java:499–511  ·  view source on GitHub ↗

Test of getPathColors method, of class World.

()

Source from the content-addressed store, hash-verified

497 * Test of getPathColors method, of class World.
498 */
499 @Test
500 public void testGetPathColors() {
501 System.out.println("getPathColors");
502
503 World instance = new World("MyWorld");
504 HashMap<String, Color> result = instance.getPathColors();
505 assertNotNull(result);
506 assertEquals(0, result.size());
507
508 instance.setPathColor("foo", Color.yellow);
509 result = instance.getPathColors();
510 assertEquals(1, result.size());
511 }
512
513 /**
514 * Test of setPathColor method, of class World.

Callers

nothing calls this directly

Calls 2

getPathColorsMethod · 0.95
setPathColorMethod · 0.95

Tested by

no test coverage detected