assertEquals( "configuration", c_ou.getString() );
// -------------------------------------------------------------------
// Test searching for subtypes
// -------------------------------------------------------------------
EntryCursor responses = connection.search( "ou=services,ou=configuration,ou=system",
"(ObjectClass=*)", SearchScope.OBJECT, "ou" );
while ( responses.next() )
{
entry = responses.get();
assertEquals( 2, entry.size() );
assertTrue( entry.containsAttribute( "ou" ) );
assertTrue( entry.containsAttribute( "c-ou" ) );
assertTrue( entry.contains( "ou", "services" ) );
assertTrue( entry.contains( "c-ou", "configuration" ) );
}
responses.close();
// ------------------------------------------------------------------
// test an entry that should show the collective attribute c-ou,
// but restrict returned attributes to c-ou and c-st
// ------------------------------------------------------------------