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

Method testGetName

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

Test of getName method, of class Place.

()

Source from the content-addressed store, hash-verified

124 * Test of getName method, of class Place.
125 */
126 @Test
127 public void testGetName() {
128 System.out.println("getName");
129
130 String expResult1 = "MyPlace";
131 Place instance1 = new Place(expResult1, 0, 0, layer);
132 String result = instance1.getName();
133 assertEquals(expResult1, result);
134
135 // test null
136 Place instance2 = new Place(null, 0, 0, layer);
137 assertNull(instance2.getName());
138 }
139
140 /**
141 * Test of setName method, of class Place.

Callers

nothing calls this directly

Calls 1

getNameMethod · 0.95

Tested by

no test coverage detected