@Test public void assertGetJobsTotalCount() { when(regCenter.getChildrenKeys("/")).thenReturn(Arrays.asList("test_job_1", "test_job_2")); assertThat(jobStatisticsAPI.getJobsTotalCount(), is(2)); }
@Override public int getJobsTotalCount() { return regCenter.getChildrenKeys("/").size(); }
JobStatisticsAPIImpl implements JobStatisticsAPI { @Override public int getJobsTotalCount() { return regCenter.getChildrenKeys("/").size(); } }
JobStatisticsAPIImpl implements JobStatisticsAPI { @Override public int getJobsTotalCount() { return regCenter.getChildrenKeys("/").size(); }  }
JobStatisticsAPIImpl implements JobStatisticsAPI { @Override public int getJobsTotalCount() { return regCenter.getChildrenKeys("/").size(); }  @Override int getJobsTotalCount(); @Override Collection<JobBriefInfo> getAllJobsBriefInfo(); @Override JobBriefInfo getJobBriefInfo(final String jobName); @Override Collection<JobBriefInfo> getJobsBriefInfo(final String ip); }
JobStatisticsAPIImpl implements JobStatisticsAPI { @Override public int getJobsTotalCount() { return regCenter.getChildrenKeys("/").size(); }  @Override int getJobsTotalCount(); @Override Collection<JobBriefInfo> getAllJobsBriefInfo(); @Override JobBriefInfo getJobBriefInfo(final String jobName); @Override Collection<JobBriefInfo> getJobsBriefInfo(final String ip);  }