@Test public void testSuccessRunner() throws Exception { String xml = this.createAdapterConfig( new NullConnection("SharedNullConnection"), new SharedConnection("SharedNullConnection"), new SharedConnection("SharedNullConnection")); BootstrapProperties mockProp = new MockBootProperties(xml); List<ConfigurationCheckReport> reports = checkRunner.runChecks(mockProp, mockUnifiedBootstrap); assertEquals(configurationCheckersCount(), reports.size()); for (ConfigurationCheckReport report : reports) { if (report.getCheckName().equals(SHARED_CONN_TEST_FRIENDLY_NAME)) { assertTrue(report.isCheckPassed()); assertEquals(0, report.getFailureExceptions().size()); } } }
public List<ConfigurationCheckReport> runChecks(BootstrapProperties bootProperties) { List<ConfigurationCheckReport> reports = new ArrayList<>(); configurationCheckers.forEach(checker -> { reports.add(checker.performConfigCheck(bootProperties)); }); return reports; }
ConfigurationCheckRunner { public List<ConfigurationCheckReport> runChecks(BootstrapProperties bootProperties) { List<ConfigurationCheckReport> reports = new ArrayList<>(); configurationCheckers.forEach(checker -> { reports.add(checker.performConfigCheck(bootProperties)); }); return reports; } }
ConfigurationCheckRunner { public List<ConfigurationCheckReport> runChecks(BootstrapProperties bootProperties) { List<ConfigurationCheckReport> reports = new ArrayList<>(); configurationCheckers.forEach(checker -> { reports.add(checker.performConfigCheck(bootProperties)); }); return reports; } ConfigurationCheckRunner(); }
ConfigurationCheckRunner { public List<ConfigurationCheckReport> runChecks(BootstrapProperties bootProperties) { List<ConfigurationCheckReport> reports = new ArrayList<>(); configurationCheckers.forEach(checker -> { reports.add(checker.performConfigCheck(bootProperties)); }); return reports; } ConfigurationCheckRunner(); List<ConfigurationCheckReport> runChecks(BootstrapProperties bootProperties); @Deprecated @Removal(version = "4.0.0") List<ConfigurationCheckReport> runChecks(BootstrapProperties bootProperties,
      UnifiedBootstrap bootstrap); }
ConfigurationCheckRunner { public List<ConfigurationCheckReport> runChecks(BootstrapProperties bootProperties) { List<ConfigurationCheckReport> reports = new ArrayList<>(); configurationCheckers.forEach(checker -> { reports.add(checker.performConfigCheck(bootProperties)); }); return reports; } ConfigurationCheckRunner(); List<ConfigurationCheckReport> runChecks(BootstrapProperties bootProperties); @Deprecated @Removal(version = "4.0.0") List<ConfigurationCheckReport> runChecks(BootstrapProperties bootProperties,
      UnifiedBootstrap bootstrap);  }