@Test public void assertBuildRequiredProperties() { JobConfiguration actual = JobConfiguration.newBuilder("test_job", 3).cron("0/1 * * * * ?").build(); assertThat(actual.getJobName(), is("test_job")); assertThat(actual.getCron(), is("0/1 * * * * ?")); assertThat(actual.getShardingTotalCount(), is(3)); assertThat(actual.getShardingItemParameters(), is("")); assertThat(actual.getJobParameter(), is("")); assertTrue(actual.isMonitorExecution()); assertFalse(actual.isFailover()); assertTrue(actual.isMisfire()); assertThat(actual.getMaxTimeDiffSeconds(), is(-1)); assertThat(actual.getReconcileIntervalMinutes(), is(10)); assertNull(actual.getJobShardingStrategyType()); assertNull(actual.getJobExecutorServiceHandlerType()); assertNull(actual.getJobErrorHandlerType()); assertThat(actual.getDescription(), is("")); assertTrue(actual.getProps().isEmpty()); assertFalse(actual.isDisabled()); assertFalse(actual.isOverwrite()); }
public static Builder newBuilder(final String jobName, final int shardingTotalCount) { return new Builder(jobName, shardingTotalCount); }
JobConfiguration { public static Builder newBuilder(final String jobName, final int shardingTotalCount) { return new Builder(jobName, shardingTotalCount); } }
JobConfiguration { public static Builder newBuilder(final String jobName, final int shardingTotalCount) { return new Builder(jobName, shardingTotalCount); }  }
JobConfiguration { public static Builder newBuilder(final String jobName, final int shardingTotalCount) { return new Builder(jobName, shardingTotalCount); }  static Builder newBuilder(final String jobName, final int shardingTotalCount); }
JobConfiguration { public static Builder newBuilder(final String jobName, final int shardingTotalCount) { return new Builder(jobName, shardingTotalCount); }  static Builder newBuilder(final String jobName, final int shardingTotalCount);  }