コード例 #1
0
 @Test
 public void testConfigListenerThread() throws IOException {
   RuntimeEnvironment instance = RuntimeEnvironment.getInstance();
   SocketAddress addr = new InetSocketAddress(0);
   assertTrue(instance.startConfigurationListenerThread(addr));
   try {
     Thread.sleep(1000);
   } catch (InterruptedException exp) {
     // do nothing
   }
   instance.writeConfiguration();
   instance.stopConfigurationListenerThread();
 }