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.getWorkingDirectory() );
    }


    @Test
View Full Code Here


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

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

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

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


    @Test
View Full Code Here

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

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

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

        service.shutdown();
        FileUtils.deleteDirectory( service.getWorkingDirectory() );
    }

}
View Full Code Here

       
        DirectoryService service = factory.getDirectoryService();
       
        assertTrue( service.isStarted() );
       
        service.shutdown();
        FileUtils.deleteDirectory( service.getWorkingDirectory() );
    }
}
View Full Code Here

            // Cleanup the methodDS if it has been created
            if ( methodDS != null )
            {
                LOG.debug( "Shuting down DS for {}", methodDS.getInstanceId() );
                methodDS.shutdown();
                FileUtils.deleteDirectory( methodDS.getWorkingDirectory() );
            }
            else
            {
                // We use a class or suite DS, just revert the current test's modifications
View Full Code Here

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

        enumeration.close();
        ctx.close();
        ldapServer.stop();
        service.shutdown();
       
        FileUtils.deleteDirectory( service.getWorkingDirectory() );
    }

}
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.