Test of getRecLevelMin method, of class Place.
()
| 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. |
nothing calls this directly
no test coverage detected