@Test void performCheckShouldNotThrowWhenAllChecksSucceed() { StartUpChecksPerformer checksPerformer = StartUpChecksPerformer.from( fromResult(GOOD_CHECK_1), fromResult(GOOD_CHECK_2)); assertThatCode(checksPerformer::performCheck) .doesNotThrowAnyException(); }
@VisibleForTesting static StartUpChecksPerformer from(StartUpCheck... checks) { return new StartUpChecksPerformer(new StartUpChecks(Sets.newHashSet(checks))); }
StartUpChecksPerformer { @VisibleForTesting static StartUpChecksPerformer from(StartUpCheck... checks) { return new StartUpChecksPerformer(new StartUpChecks(Sets.newHashSet(checks))); } }
StartUpChecksPerformer { @VisibleForTesting static StartUpChecksPerformer from(StartUpCheck... checks) { return new StartUpChecksPerformer(new StartUpChecks(Sets.newHashSet(checks))); } @Inject  StartUpChecksPerformer(StartUpChecks startUpChecks); }
StartUpChecksPerformer { @VisibleForTesting static StartUpChecksPerformer from(StartUpCheck... checks) { return new StartUpChecksPerformer(new StartUpChecks(Sets.newHashSet(checks))); } @Inject  StartUpChecksPerformer(StartUpChecks startUpChecks); void performCheck(); }
StartUpChecksPerformer { @VisibleForTesting static StartUpChecksPerformer from(StartUpCheck... checks) { return new StartUpChecksPerformer(new StartUpChecks(Sets.newHashSet(checks))); } @Inject  StartUpChecksPerformer(StartUpChecks startUpChecks); void performCheck();  }