ConfigurationService { public String getJobParameter() { return jobNodeStorage.getJobNodeDataDirectly(ConfigurationNode.JOB_PARAMETER); } ConfigurationService(final CoordinatorRegistryCenter coordinatorRegistryCenter, final JobConfiguration jobConfiguration); void persistJobConfiguration(); int getShardingTotalCount(); Map<Integer, String> getShardingItemParameters(); String getJobParameter(); String getCron(); boolean isMonitorExecution(); int getProcessCountIntervalSeconds(); int getConcurrentDataProcessThreadCount(); int getFetchDataCount(); void checkMaxTimeDiffSecondsTolerable(); boolean isFailover(); boolean isMisfire(); String getJobShardingStrategyClass(); int getMonitorPort(); String getJobName(); boolean inSkipTime(Date now);  }
@Test public void assertGetJobParameter() { when(jobNodeStorage.getJobNodeDataDirectly(ConfigurationNode.JOB_PARAMETER)).thenReturn("para"); assertThat(configService.getJobParameter(), is("para")); verify(jobNodeStorage).getJobNodeDataDirectly(ConfigurationNode.JOB_PARAMETER); }