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

Method testGetNewLayer

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

Test of getNewLayer method, of class World.

()

Source from the content-addressed store, hash-verified

327 * Test of getNewLayer method, of class World.
328 */
329 @Test
330 public void testGetNewLayer() {
331 System.out.println("getNewLayer");
332
333 World instance = new World("MyWorld");
334
335 Layer result = instance.getNewLayer();
336 assertNotNull(result);
337 // check whether the new layer is actually in the list
338 assertEquals(result, instance.getLayer(result.getId()));
339 }
340
341 /**
342 * Test for getNextLayerID

Callers

nothing calls this directly

Calls 3

getNewLayerMethod · 0.95
getLayerMethod · 0.95
getIdMethod · 0.95

Tested by

no test coverage detected