@Test public void testDefaultBuilderNoValues() { Probe probe = ProbeGenerator.defaultBuilder(new io.strimzi.api.kafka.model.ProbeBuilder().build()) .build(); assertThat(probe, is(new ProbeBuilder() .withInitialDelaySeconds(15) .withTimeoutSeconds(5) .build() )); }
public static ProbeBuilder defaultBuilder(Probe probeConfig) { if (probeConfig == null) { throw new IllegalArgumentException(); } return new ProbeBuilder() .withInitialDelaySeconds(probeConfig.getInitialDelaySeconds()) .withTimeoutSeconds(probeConfig.getTimeoutSeconds()) .withPeriodSeconds(probeConfig.getPeriodSeconds()) .withSuccessThreshold(probeConfig.getSuccessThreshold()) .withFailureThreshold(probeConfig.getFailureThreshold()); }
ProbeGenerator { public static ProbeBuilder defaultBuilder(Probe probeConfig) { if (probeConfig == null) { throw new IllegalArgumentException(); } return new ProbeBuilder() .withInitialDelaySeconds(probeConfig.getInitialDelaySeconds()) .withTimeoutSeconds(probeConfig.getTimeoutSeconds()) .withPeriodSeconds(probeConfig.getPeriodSeconds()) .withSuccessThreshold(probeConfig.getSuccessThreshold()) .withFailureThreshold(probeConfig.getFailureThreshold()); } }
ProbeGenerator { public static ProbeBuilder defaultBuilder(Probe probeConfig) { if (probeConfig == null) { throw new IllegalArgumentException(); } return new ProbeBuilder() .withInitialDelaySeconds(probeConfig.getInitialDelaySeconds()) .withTimeoutSeconds(probeConfig.getTimeoutSeconds()) .withPeriodSeconds(probeConfig.getPeriodSeconds()) .withSuccessThreshold(probeConfig.getSuccessThreshold()) .withFailureThreshold(probeConfig.getFailureThreshold()); } private  ProbeGenerator(); }
ProbeGenerator { public static ProbeBuilder defaultBuilder(Probe probeConfig) { if (probeConfig == null) { throw new IllegalArgumentException(); } return new ProbeBuilder() .withInitialDelaySeconds(probeConfig.getInitialDelaySeconds()) .withTimeoutSeconds(probeConfig.getTimeoutSeconds()) .withPeriodSeconds(probeConfig.getPeriodSeconds()) .withSuccessThreshold(probeConfig.getSuccessThreshold()) .withFailureThreshold(probeConfig.getFailureThreshold()); } private  ProbeGenerator(); static ProbeBuilder defaultBuilder(Probe probeConfig); static io.fabric8.kubernetes.api.model.Probe httpProbe(Probe probeConfig, String path, String port); static io.fabric8.kubernetes.api.model.Probe execProbe(Probe probeConfig, List<String> command); }
ProbeGenerator { public static ProbeBuilder defaultBuilder(Probe probeConfig) { if (probeConfig == null) { throw new IllegalArgumentException(); } return new ProbeBuilder() .withInitialDelaySeconds(probeConfig.getInitialDelaySeconds()) .withTimeoutSeconds(probeConfig.getTimeoutSeconds()) .withPeriodSeconds(probeConfig.getPeriodSeconds()) .withSuccessThreshold(probeConfig.getSuccessThreshold()) .withFailureThreshold(probeConfig.getFailureThreshold()); } private  ProbeGenerator(); static ProbeBuilder defaultBuilder(Probe probeConfig); static io.fabric8.kubernetes.api.model.Probe httpProbe(Probe probeConfig, String path, String port); static io.fabric8.kubernetes.api.model.Probe execProbe(Probe probeConfig, List<String> command); static final io.strimzi.api.kafka.model.Probe DEFAULT_TLS_SIDECAR_PROBE; }