@ BeforeClass public static void setUp ( ) throws Exception { // Add LDAP variables to bootstrap properties file LDAPUtils . addLDAPVariables ( server ) ; Log . info ( c , "setUp" , "Starting the server... (will wait for userRegistry servlet to start)" ) ; server . copyFileToLibertyInstallRoot ( "lib/features" , "internalfeatures/securitylibertyinternals-1.0.mf" ) ; server . addInstalledAppForValidation ( "userRegistry" ) ; server . startServer ( c . getName ( ) + ".log" ) ; //Make sure the application has come up before proceeding assertNotNull ( "Application userRegistry does not appear to have started." , server . waitForStringInLog ( "CWWKZ0001I:.*userRegistry" ) ) ; assertNotNull ( "Security service did not report it was ready" , server . waitForStringInLog ( "CWWKS0008I" ) ) ; assertNotNull ( "Server did not came up" , server . waitForStringInLog ( "CWWKF0011I" ) ) ; Log . info ( c , "setUp" , "Creating servlet connection the server" ) ; servlet = new UserRegistryServletConnection ( server . getHostname ( ) , server . getHttpDefaultPort ( ) ) ; if ( servlet . getRealm ( ) == null ) { Thread . sleep ( 5000 ) ; servlet . getRealm ( ) ; } }
Updates the sample which is expected to be at the hard - coded path . If this test is failing check this path is correct .