test_class.declarator: validator = new UnboundLookupConnectionValidator()
test_class.modifier: private
test_class.original_string: private UnboundLookupConnectionValidator validator = new UnboundLookupConnectionValidator();
test_class.type: UnboundLookupConnectionValidator
test_class.var_name: validator
test_class.file: oak-auth-ldap/src/test/java/org/apache/jackrabbit/oak/security/authentication/ldap/impl/UnboundLookupConnectionValidatorTest.java
test_class.identifier: UnboundLookupConnectionValidatorTest
test_case.body: @Test
      public void testValidateNotConnected() {
          LdapConnection connection = Mockito.mock(LdapConnection.class);
          when(connection.isConnected()).thenReturn(false);
  
          assertFalse(validator.validate(connection));
      }
test_case.class_method_signature: UnboundLookupConnectionValidatorTest.testValidateNotConnected()
test_case.full_signature: @Test public void testValidateNotConnected()
test_case.identifier: testValidateNotConnected
test_case.invocations: mock thenReturn when isConnected assertFalse validate
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidateNotConnected()
focal_class.declarator: log = LoggerFactory.getLogger(UnboundLookupConnectionValidator.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(UnboundLookupConnectionValidator.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.file: oak-auth-ldap/src/main/java/org/apache/jackrabbit/oak/security/authentication/ldap/impl/UnboundLookupConnectionValidator.java
focal_class.identifier: UnboundLookupConnectionValidator
focal_class.interfaces: implements LdapConnectionValidator
focal_class.class_method_signature: UnboundLookupConnectionValidator.validate(LdapConnection connection)
focal_class.full_signature: public boolean validate(LdapConnection connection)
focal_class.identifier: validate
focal_class.modifiers: public
focal_class.parameters: (LdapConnection connection)
focal_class.return: boolean
focal_class.signature: boolean validate(LdapConnection connection)
focal_method.body: public boolean validate(LdapConnection connection) {
          try {
              return connection.isConnected()
                      && (connection.lookup(Dn.ROOT_DSE, SchemaConstants.NO_ATTRIBUTE) != null);
          } catch (LdapException e) {
              log.info("validating failed: {}", e);
              return false;
          }
      }
focal_method.class_method_signature: UnboundLookupConnectionValidator.validate(LdapConnection connection)
focal_method.full_signature: public boolean validate(LdapConnection connection)
focal_method.identifier: validate
focal_method.invocations: isConnected lookup info
focal_method.modifiers: public
focal_method.parameters: (LdapConnection connection)
focal_method.return: boolean
focal_method.signature: boolean validate(LdapConnection connection)