test/jdk/com/sun/jndi/ldap/lib/LDAPTestUtils.java
branchJDK-8210696-branch
changeset 57345 ff884a2f247b
parent 48852 478e198da84b
equal deleted inserted replaced
57343:9a11a7e1c035 57345:ff884a2f247b
   257             throw new RuntimeException(
   257             throw new RuntimeException(
   258                     "Error: failed to create LDAPServer, not found ldap "
   258                     "Error: failed to create LDAPServer, not found ldap "
   259                             + "cache file " + fileName);
   259                             + "cache file " + fileName);
   260         }
   260         }
   261 
   261 
   262         Thread thread = new Thread(() -> {
   262         Thread thread = new LdapPlaybackServer(serverSocket, fileName);
   263             try {
       
   264                 new test.LDAPServer(serverSocket, fileName);
       
   265             } catch (Exception e) {
       
   266                 System.out.println("Warning: LDAP server running with issue");
       
   267                 e.printStackTrace();
       
   268             }
       
   269         });
       
   270 
   263 
   271         thread.start();
   264         thread.start();
   272         return thread;
   265         return thread;
   273     }
   266     }
   274 
   267