Package org.apache.directory.server.core

Examples of org.apache.directory.server.core.DirectoryService.shutdown()


        DirectoryService service = DSAnnotationProcessor.getDirectoryService();
       
        assertTrue( service.isStarted() );
        assertEquals( "classDS", service.getInstanceId() );
       
        service.shutdown();
        FileUtils.deleteDirectory( service.getInstanceLayout().getInstanceDirectory() );
    }


    @Test
View Full Code Here


        DirectoryService service = DSAnnotationProcessor.getDirectoryService();
       
        assertTrue( service.isStarted() );
        assertEquals( "methodDS", service.getInstanceId() );
       
        service.shutdown();
        FileUtils.deleteDirectory( service.getInstanceLayout().getInstanceDirectory() );
    }
   
   
    @Test
View Full Code Here

            }
        }
       
        assertTrue( service.getAdminSession().exists( new Dn( "dc=example,dc=com" ) ) );

        service.shutdown();
        FileUtils.deleteDirectory( service.getInstanceLayout().getInstanceDirectory() );
    }
   
   
    @Test
View Full Code Here

        assertTrue( results.contains( "dc=example,dc=com" ) );

        enumeration.close();
        ctx.close();
        ldapServer.stop();
        service.shutdown();
       
        FileUtils.deleteDirectory( service.getInstanceLayout().getInstanceDirectory() );
    }
}
View Full Code Here

        DirectoryService service = DSAnnotationProcessor.getDirectoryService();
       
        assertTrue( service.isStarted() );
        assertEquals( "classDS", service.getInstanceId() );
       
        service.shutdown();
        FileUtils.deleteDirectory( service.getInstanceLayout().getInstanceDirectory() );
    }


    @Test
View Full Code Here

        DirectoryService service = DSAnnotationProcessor.getDirectoryService();
       
        assertTrue( service.isStarted() );
        assertEquals( "methodDS", service.getInstanceId() );
       
        service.shutdown();
        FileUtils.deleteDirectory( service.getInstanceLayout().getInstanceDirectory() );
    }
   
   
    @Test
View Full Code Here

                assertTrue( partition.isInitialized() );
                assertEquals( "ou=schema", partition.getSuffixDn().getName() );
            }
        }
       
        service.shutdown();
        FileUtils.deleteDirectory( service.getInstanceLayout().getInstanceDirectory() );
    }
   
   
    @Test
View Full Code Here

                assertTrue( partition.isInitialized() );
                assertEquals( "ou=schema", partition.getSuffixDn().getName() );
            }
        }

        service.shutdown();
        FileUtils.deleteDirectory( service.getInstanceLayout().getInstanceDirectory() );
    }

}
View Full Code Here

    Thread.sleep( 65000 );
  }

  private static void shutdownRunningServers() throws NamingException {
    DirectoryService ds = DirectoryService.getInstance();
    ds.shutdown();
  }

  public SpringSecurityContextSource getContextSource() {
    return (SpringSecurityContextSource) appContext.getBean( BeanIds.CONTEXT_SOURCE );
  }
View Full Code Here

        DirectoryService service = DSAnnotationProcessor.getDirectoryService();
       
        assertTrue( service.isStarted() );
        assertEquals( "classDS", service.getInstanceId() );
       
        service.shutdown();
        FileUtils.deleteDirectory( service.getInstanceLayout().getInstanceDirectory() );
    }


    @Test
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.