@Test void builderShouldThrowWhenPeriodHasIncorrectFormat() { assertThatThrownBy(() -> PeriodicalHealthChecksConfiguration.builder() .period(DurationParser.parse(RANDOM_STRING)) .build()) .isInstanceOf(NumberFormatException.class); }
public static Builder.RequiredPeriod builder() { return Builder.ReadyToBuild::new; }
PeriodicalHealthChecksConfiguration { public static Builder.RequiredPeriod builder() { return Builder.ReadyToBuild::new; } }
PeriodicalHealthChecksConfiguration { public static Builder.RequiredPeriod builder() { return Builder.ReadyToBuild::new; } @VisibleForTesting  PeriodicalHealthChecksConfiguration(Duration period); }
PeriodicalHealthChecksConfiguration { public static Builder.RequiredPeriod builder() { return Builder.ReadyToBuild::new; } @VisibleForTesting  PeriodicalHealthChecksConfiguration(Duration period); static Builder.RequiredPeriod builder(); static PeriodicalHealthChecksConfiguration from(Configuration configuration); Duration getPeriod(); @Override final boolean equals(Object o); @Override final int hashCode(); }
PeriodicalHealthChecksConfiguration { public static Builder.RequiredPeriod builder() { return Builder.ReadyToBuild::new; } @VisibleForTesting  PeriodicalHealthChecksConfiguration(Duration period); static Builder.RequiredPeriod builder(); static PeriodicalHealthChecksConfiguration from(Configuration configuration); Duration getPeriod(); @Override final boolean equals(Object o); @Override final int hashCode(); static final PeriodicalHealthChecksConfiguration DEFAULT_CONFIGURATION; }