TaskSchedulerServiceStateBuilder implements TaskStateBuilder { public static String getSuffixFromSelfLink(String selfLink) { return selfLink.replace(TaskSchedulerServiceFactory.SELF_LINK, ""); } TaskSchedulerServiceStateBuilder(Class<? extends StatefulService> service, int maxRunningTasks); @Override TaskSchedulerService.State build(); static String getSuffixFromSelfLink(String selfLink); static ServiceDocument getStartPatch(Class<?> service); static long triggerInterval; }
@Test public void testGetSuffixFromSelfLink() { assertThat(TaskSchedulerServiceStateBuilder.getSuffixFromSelfLink(testServiceLink), is("/test-service")); }