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

Method testGetName

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

Test of getName method, of class World.

()

Source from the content-addressed store, hash-verified

152 * Test of getName method, of class World.
153 */
154 @Test
155 public void testGetName() {
156 System.out.println("getName");
157
158 String name = "MyWorld";
159 World instance1 = new World(name);
160 String result = instance1.getName();
161 assertEquals(name, result);
162
163 World instance2 = new World();
164 assertEquals("unnamed", instance2.getName());
165 }
166
167 /**
168 * Test of setName method, of class World.

Callers

nothing calls this directly

Calls 1

getNameMethod · 0.95

Tested by

no test coverage detected