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

Method testSetName

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

Test of setName method, of class World.

()

Source from the content-addressed store, hash-verified

168 * Test of setName method, of class World.
169 */
170 @Test
171 public void testSetName() {
172 System.out.println("setName");
173
174 String name = "MyWorld", newname = "New Name";
175 World instance = new World(name);
176
177 instance.setName(newname);
178 String result = instance.getName();
179 assertEquals(newname, result);
180
181 instance.setName(null);
182 assertEquals("unnamed", instance.getName());
183 }
184
185 /**
186 * Test of getHome method, of class World.

Callers

nothing calls this directly

Calls 2

setNameMethod · 0.95
getNameMethod · 0.95

Tested by

no test coverage detected