@ Test public void getGroupsForUserInTopGroup ( ) throws Exception { // This test will only be executed when using physical LDAP server Assume . assumeTrue ( ! LDAPUtils . USE_LOCAL_LDAP_SERVER ) ; String user = topGroupUser ; Log . info ( logClass , "getGroupsForUserInTopGroup" , "Checking with a valid user." ) ; List < String > list = myServlet . getGroupsForUser ( user ) ; System . out . println ( "List of groups : " + list . toString ( ) ) ; assertTrue ( list . contains ( getCN ( ) + topGroup + getSuffix ( ) ) ) ; }
Hit the test servlet to see if getGroupsForUser works when supplied with a valid user in top level nested group . This test expects that only the top level nested group nested_g1 will be returned . This verifies the various required bundles got installed and are working .