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

Method testGetComments

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

Test of getComments method, of class Place.

()

Source from the content-addressed store, hash-verified

382 * Test of getComments method, of class Place.
383 */
384 @Test
385 public void testGetComments() {
386 System.out.println("getComments");
387
388 Place instance = new Place("MyPlace", 0, 0, layer);
389 assertNotNull(instance.getComments());
390 assertEquals("", instance.getComments());
391
392 String comment1 = "My Comment";
393 instance.setComments(comment1);
394 assertEquals(comment1, instance.getComments());
395
396 String comment2 = "Another comment";
397 instance.setComments(comment2);
398 assertEquals(comment2, instance.getComments());
399 }
400
401 /**
402 * Test of getExit method, of class Place.

Callers

nothing calls this directly

Calls 2

getCommentsMethod · 0.95
setCommentsMethod · 0.95

Tested by

no test coverage detected