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

Method testGetRecLevelMin

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

Test of getRecLevelMin method, of class Place.

()

Source from the content-addressed store, hash-verified

236 * Test of getRecLevelMin method, of class Place.
237 */
238 @Test
239 public void testGetRecLevelMin() {
240 System.out.println("getRecLevelMin");
241
242 Place instance = new Place("MyPlace", 0, 0, layer);
243 // test default value
244 assertEquals(-1, instance.getRecLevelMin());
245
246 int expResult1 = 5;
247 instance.setRecLevelMin(expResult1);
248 int result1 = instance.getRecLevelMin();
249 assertEquals(expResult1, result1);
250
251 int expResult2 = -3;
252 instance.setRecLevelMin(expResult2);
253 int result2 = instance.getRecLevelMin();
254 assertEquals(expResult2, result2);
255
256 int expResult3 = 0;
257 instance.setRecLevelMin(expResult3);
258 int result3 = instance.getRecLevelMin();
259 assertEquals(expResult3, result3);
260 }
261
262 /**
263 * Test of setRecLevelMin method, of class Place.

Callers

nothing calls this directly

Calls 2

getRecLevelMinMethod · 0.95
setRecLevelMinMethod · 0.95

Tested by

no test coverage detected