@Test public void testCertificateDirectoryNotFound() { doThrow(CertificateNotFoundException.class).when(utils).getCertsDirectory(); integration.onCreate(APP_TYPE); IntegrationHealth health = integration.getHealthManager().getHealth(); IntegrationFlags flags = health.getFlags(); assertEquals(IntegrationFlags.ValueEnum.NOK, flags.getParserInstalled()); assertEquals(IntegrationFlags.ValueEnum.NOK, flags.getUserCertificateInstalled()); assertEquals(IntegrationFlags.ValueEnum.NOK, flags.getUserAuthenticated()); assertEquals(IntegrationFlags.ValueEnum.NOT_APPLICABLE, flags.getAppCertificateInstalled()); }
@Override public void onCreate(String integrationUser) { String applicationId = application.getId(); healthManager.setName(applicationId); healthManager.parserInstalled(NOK); try { registerUser(integrationUser); } catch (BootstrapException e) { LOG.error(e.getMessage()); healthManager.userCertificateInstalled(NOK); } healthIndicator.addHealthIndicator(applicationId, new IntegrationHealthIndicatorAdapter(this)); }
NullIntegration extends BaseIntegration { @Override public void onCreate(String integrationUser) { String applicationId = application.getId(); healthManager.setName(applicationId); healthManager.parserInstalled(NOK); try { registerUser(integrationUser); } catch (BootstrapException e) { LOG.error(e.getMessage()); healthManager.userCertificateInstalled(NOK); } healthIndicator.addHealthIndicator(applicationId, new IntegrationHealthIndicatorAdapter(this)); } }
NullIntegration extends BaseIntegration { @Override public void onCreate(String integrationUser) { String applicationId = application.getId(); healthManager.setName(applicationId); healthManager.parserInstalled(NOK); try { registerUser(integrationUser); } catch (BootstrapException e) { LOG.error(e.getMessage()); healthManager.userCertificateInstalled(NOK); } healthIndicator.addHealthIndicator(applicationId, new IntegrationHealthIndicatorAdapter(this)); } NullIntegration(ApplicationsHealthIndicator healthIndicator, Application application,
      IntegrationUtils utils, AuthenticationProxy authenticationProxy,
      LogMessageSource logMessage, Environment environment); }
NullIntegration extends BaseIntegration { @Override public void onCreate(String integrationUser) { String applicationId = application.getId(); healthManager.setName(applicationId); healthManager.parserInstalled(NOK); try { registerUser(integrationUser); } catch (BootstrapException e) { LOG.error(e.getMessage()); healthManager.userCertificateInstalled(NOK); } healthIndicator.addHealthIndicator(applicationId, new IntegrationHealthIndicatorAdapter(this)); } NullIntegration(ApplicationsHealthIndicator healthIndicator, Application application,
      IntegrationUtils utils, AuthenticationProxy authenticationProxy,
      LogMessageSource logMessage, Environment environment); @Override void onCreate(String integrationUser); @Override void registerUser(String integrationUser); @Override void onConfigChange(IntegrationSettings settings); @Override void onDestroy(); @Override IntegrationHealth getHealthStatus(); @Override IntegrationSettings getSettings(); @Override Set<String> getIntegrationWhiteList(); }
NullIntegration extends BaseIntegration { @Override public void onCreate(String integrationUser) { String applicationId = application.getId(); healthManager.setName(applicationId); healthManager.parserInstalled(NOK); try { registerUser(integrationUser); } catch (BootstrapException e) { LOG.error(e.getMessage()); healthManager.userCertificateInstalled(NOK); } healthIndicator.addHealthIndicator(applicationId, new IntegrationHealthIndicatorAdapter(this)); } NullIntegration(ApplicationsHealthIndicator healthIndicator, Application application,
      IntegrationUtils utils, AuthenticationProxy authenticationProxy,
      LogMessageSource logMessage, Environment environment); @Override void onCreate(String integrationUser); @Override void registerUser(String integrationUser); @Override void onConfigChange(IntegrationSettings settings); @Override void onDestroy(); @Override IntegrationHealth getHealthStatus(); @Override IntegrationSettings getSettings(); @Override Set<String> getIntegrationWhiteList();  }