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

Method testGetPathColor

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

Test of getPathColor method, of class World.

()

Source from the content-addressed store, hash-verified

428 * Test of getPathColor method, of class World.
429 */
430 @Test
431 public void testGetPathColor() {
432 System.out.println("getPathColor");
433
434 World instance = new World("MyWorld");
435
436 String dir1 = "";
437 Color expResult1 = instance.pathColorNonCardinal;
438 Color result1 = instance.getPathColor(dir1);
439 assertEquals(expResult1, result1);
440
441 String dir2 = "n";
442 Color expResult2 = instance.pathColorCardinal;
443 Color result2 = instance.getPathColor(dir2);
444 assertEquals(expResult2, result2);
445
446 String dir3 = "u";
447 Color expResult3 = instance.pathColorNonCardinal;
448 Color result3 = instance.getPathColor(dir3);
449 assertEquals(expResult3, result3);
450
451 String dir4 = "foo";
452 Color expResult4 = instance.pathColorNonCardinal;
453 Color result4 = instance.getPathColor(dir4);
454 assertEquals(expResult4, result4);
455
456 // test null
457 assertEquals(instance.getPathColorStd(), instance.getPathColor(null));
458 }
459
460 /**
461 * Test of setPathColor method, of class World.

Callers

nothing calls this directly

Calls 2

getPathColorMethod · 0.95
getPathColorStdMethod · 0.95

Tested by

no test coverage detected