コード例 #1
0
 @Test
 public void autostartSetToFalseSetsPortToDefault() {
   settings.autostart(false);
   assertEquals(SERVER_DEFAULT_PORT.getValue(), settings.getPort());
 }
コード例 #2
0
 @Test
 public void portIsRandom() {
   // Of course, it might still happen that it assigns it to 7001...
   assertNotSame((int) SERVER_DEFAULT_PORT.getValue(), settings.getPort());
 }