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

Method testSetRecLevelMax

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

Test of setRecLevelMax method, of class Place.

()

Source from the content-addressed store, hash-verified

320 * Test of setRecLevelMax method, of class Place.
321 */
322 @Test
323 public void testSetRecLevelMax() {
324 System.out.println("setRecLevelMax");
325
326 Place instance = new Place("MyPlace", 0, 0, layer);
327
328 int recLevelMax1 = 0;
329 instance.setRecLevelMax(recLevelMax1);
330 int result1 = instance.getRecLevelMax();
331 assertEquals(recLevelMax1, result1);
332
333 int recLevelMax2 = 4;
334 instance.setRecLevelMax(recLevelMax2);
335 int result2 = instance.getRecLevelMax();
336 assertEquals(recLevelMax2, result2);
337
338 int recLevelMax3 = -1;
339 instance.setRecLevelMax(recLevelMax3);
340 int result3 = instance.getRecLevelMax();
341 assertEquals(recLevelMax3, result3);
342 }
343
344 /**
345 * Test of getInfoRing method, of class Place.

Callers

nothing calls this directly

Calls 2

setRecLevelMaxMethod · 0.95
getRecLevelMaxMethod · 0.95

Tested by

no test coverage detected