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

Method testToString

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

Test of toString method, of class Place.

()

Source from the content-addressed store, hash-verified

810 * Test of toString method, of class Place.
811 */
812 @Test
813 public void testToString() {
814 System.out.println("toString");
815
816 Place instance = new Place("MyPlace", 0, 0, layer);
817 String expResult = instance.getName() + " (ID: " + instance.getId() + ")";
818 String result = instance.toString();
819 assertEquals(expResult, result);
820 }
821
822 /**
823 * Test of compareTo method, of class Place.

Callers

nothing calls this directly

Calls 3

getNameMethod · 0.95
getIdMethod · 0.95
toStringMethod · 0.95

Tested by

no test coverage detected