test_class.declarator: expectedException = ExpectedException.none()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public ExpectedException expectedException = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: expectedException
test_class.declarator: adapterDeploymentContextFactoryBean
test_class.modifier: private
test_class.original_string: private AdapterDeploymentContextFactoryBean adapterDeploymentContextFactoryBean;
test_class.type: AdapterDeploymentContextFactoryBean
test_class.var_name: adapterDeploymentContextFactoryBean
test_class.file: adapters/oidc/spring-security/src/test/java/org/keycloak/adapters/springsecurity/AdapterDeploymentContextFactoryBeanTest.java
test_class.identifier: AdapterDeploymentContextFactoryBeanTest
test_case.body: @Test
      public void should_throw_exception_when_configuration_file_was_not_found() throws Exception {
          // given:
          adapterDeploymentContextFactoryBean = new AdapterDeploymentContextFactoryBean(getEmptyResource());
  
          // then:
          expectedException.expect(FileNotFoundException.class);
          expectedException.expectMessage("Unable to locate Keycloak configuration file: no-file.json");
  
          // when:
          adapterDeploymentContextFactoryBean.afterPropertiesSet();
      }
test_case.class_method_signature: AdapterDeploymentContextFactoryBeanTest.should_throw_exception_when_configuration_file_was_not_found()
test_case.full_signature: @Test public void should_throw_exception_when_configuration_file_was_not_found()
test_case.identifier: should_throw_exception_when_configuration_file_was_not_found
test_case.invocations: getEmptyResource expect expectMessage afterPropertiesSet
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_throw_exception_when_configuration_file_was_not_found()
focal_class.declarator: log =
          LoggerFactory.getLogger(AdapterDeploymentContextFactoryBean.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log =
          LoggerFactory.getLogger(AdapterDeploymentContextFactoryBean.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: keycloakConfigFileResource
focal_class.modifier: private final
focal_class.original_string: private final Resource keycloakConfigFileResource;
focal_class.type: Resource
focal_class.var_name: keycloakConfigFileResource
focal_class.declarator: keycloakConfigResolver
focal_class.modifier: private final
focal_class.original_string: private final KeycloakConfigResolver keycloakConfigResolver;
focal_class.type: KeycloakConfigResolver
focal_class.var_name: keycloakConfigResolver
focal_class.declarator: adapterDeploymentContext
focal_class.modifier: private
focal_class.original_string: private AdapterDeploymentContext adapterDeploymentContext;
focal_class.type: AdapterDeploymentContext
focal_class.var_name: adapterDeploymentContext
focal_class.file: adapters/oidc/spring-security/src/main/java/org/keycloak/adapters/springsecurity/AdapterDeploymentContextFactoryBean.java
focal_class.identifier: AdapterDeploymentContextFactoryBean
focal_class.interfaces: implements FactoryBean<AdapterDeploymentContext>, InitializingBean
focal_class.class_method_signature: AdapterDeploymentContextFactoryBean.AdapterDeploymentContextFactoryBean(Resource keycloakConfigFileResource)
focal_class.full_signature: public  AdapterDeploymentContextFactoryBean(Resource keycloakConfigFileResource)
focal_class.identifier: AdapterDeploymentContextFactoryBean
focal_class.modifiers: public
focal_class.parameters: (Resource keycloakConfigFileResource)
focal_class.signature:  AdapterDeploymentContextFactoryBean(Resource keycloakConfigFileResource)
focal_class.class_method_signature: AdapterDeploymentContextFactoryBean.AdapterDeploymentContextFactoryBean(KeycloakConfigResolver keycloakConfigResolver)
focal_class.full_signature: public  AdapterDeploymentContextFactoryBean(KeycloakConfigResolver keycloakConfigResolver)
focal_class.identifier: AdapterDeploymentContextFactoryBean
focal_class.modifiers: public
focal_class.parameters: (KeycloakConfigResolver keycloakConfigResolver)
focal_class.signature:  AdapterDeploymentContextFactoryBean(KeycloakConfigResolver keycloakConfigResolver)
focal_class.class_method_signature: AdapterDeploymentContextFactoryBean.getObjectType()
focal_class.full_signature: @Override public Class<?> getObjectType()
focal_class.identifier: getObjectType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Class<?>
focal_class.signature: Class<?> getObjectType()
focal_class.class_method_signature: AdapterDeploymentContextFactoryBean.isSingleton()
focal_class.full_signature: @Override public boolean isSingleton()
focal_class.identifier: isSingleton
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isSingleton()
focal_class.class_method_signature: AdapterDeploymentContextFactoryBean.afterPropertiesSet()
focal_class.full_signature: @Override public void afterPropertiesSet()
focal_class.identifier: afterPropertiesSet
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void afterPropertiesSet()
focal_class.class_method_signature: AdapterDeploymentContextFactoryBean.loadKeycloakDeployment()
focal_class.full_signature: private KeycloakDeployment loadKeycloakDeployment()
focal_class.identifier: loadKeycloakDeployment
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: KeycloakDeployment
focal_class.signature: KeycloakDeployment loadKeycloakDeployment()
focal_class.class_method_signature: AdapterDeploymentContextFactoryBean.getObject()
focal_class.full_signature: @Override public AdapterDeploymentContext getObject()
focal_class.identifier: getObject
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: AdapterDeploymentContext
focal_class.signature: AdapterDeploymentContext getObject()
focal_method.body: @Override
      public void afterPropertiesSet() throws Exception {
          if (keycloakConfigResolver != null) {
              adapterDeploymentContext = new AdapterDeploymentContext(keycloakConfigResolver);
          }
          else {
              log.info("Loading Keycloak deployment from configuration file: {}", keycloakConfigFileResource);
  
              KeycloakDeployment deployment = loadKeycloakDeployment();
              adapterDeploymentContext = new AdapterDeploymentContext(deployment);
          }
      }
focal_method.class_method_signature: AdapterDeploymentContextFactoryBean.afterPropertiesSet()
focal_method.full_signature: @Override public void afterPropertiesSet()
focal_method.identifier: afterPropertiesSet
focal_method.invocations: info loadKeycloakDeployment
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void afterPropertiesSet()