NdsBeisEsb/src/test/java/com/northgateps/nds/beis/esb/beisregistration/BeisRegistrationCamelSpringTestSupport.java
/**
     * Ensure connection to directory service is possible before any tests are run.
     */
Ensure connection to directory service is possible before any tests are run.
Ensure connection to directory service is possible before any tests are run .
@BeforeClass()
    public static void checkConnectionIsPossible() {
        final DirectoryConnectionConfig directoryConnectionConfig = new DirectoryConnectionConfig(configurationManager);
        try (DirectoryConnection directoryConnectionImpl = new DirectoryConnection(directoryConnectionConfig)) {
            connection = true;
        } catch (Exception e) {
            connection = false;
        }
    }
@ BeforeClass ( ) public static void checkConnectionIsPossible ( ) { final DirectoryConnectionConfig directoryConnectionConfig = new DirectoryConnectionConfig ( configurationManager ) ; try ( DirectoryConnection directoryConnectionImpl = new DirectoryConnection ( directoryConnectionConfig ) ) { connection = true ; } catch ( Exception e ) { connection = false ; } }
Ensure connection to directory service is possible before any tests are run.
Ensure connection to directory service is possible before any tests are run .
// Establish a connection to the directory service