@Test public void testLoadFromCheckSpecs_singleInline() throws Exception { assertEquals("single inline check is loaded", 1, Locator.loadFromCheckSpecs(Collections.singletonList( CheckSpec.fromJson(key("inlineScript", "function getCheckName() { return \"simple inline\"; }").get()))).size()); assertEquals("simple inline check name is same", "simple inline", Locator.loadFromCheckSpecs(Collections.singletonList( CheckSpec.fromJson(key("inlineScript", "function getCheckName() { return \"simple inline\"; }").get()))).get(0).getCheckName()); assertEquals("simple inline check name is alias", "alias for simple inline", Locator.loadFromCheckSpecs(Collections.singletonList( CheckSpec.fromJson(key("name", "alias for simple inline").key("inlineScript", "function getCheckName() { return \"simple inline\"; }").get()))).get(0).getCheckName()); }
public static List<ProgressCheck> loadFromCheckSpecs(final List<CheckSpec> checkSpecs) throws Exception { return loadFromCheckSpecs(checkSpecs, Util.getDefaultClassLoader()); }
Locator { public static List<ProgressCheck> loadFromCheckSpecs(final List<CheckSpec> checkSpecs) throws Exception { return loadFromCheckSpecs(checkSpecs, Util.getDefaultClassLoader()); } }
Locator { public static List<ProgressCheck> loadFromCheckSpecs(final List<CheckSpec> checkSpecs) throws Exception { return loadFromCheckSpecs(checkSpecs, Util.getDefaultClassLoader()); } private  Locator(); }
Locator { public static List<ProgressCheck> loadFromCheckSpecs(final List<CheckSpec> checkSpecs) throws Exception { return loadFromCheckSpecs(checkSpecs, Util.getDefaultClassLoader()); } private  Locator(); static ProgressCheck loadProgressCheck(final String impl); static ProgressCheck loadProgressCheck(final String impl, final JsonObject config); static ProgressCheck loadProgressCheck(final String impl, final JsonObject config,
                                                  final ClassLoader classLoader); static ProgressCheck wrapWithAlias(final ProgressCheck progressCheck, final String alias); static List<ProgressCheck> loadFromCheckSpecs(final List<CheckSpec> checkSpecs); static List<ProgressCheck> loadFromCheckSpecs(final List<CheckSpec> checkSpecs,
                                                         final ClassLoader checkLoader); }
Locator { public static List<ProgressCheck> loadFromCheckSpecs(final List<CheckSpec> checkSpecs) throws Exception { return loadFromCheckSpecs(checkSpecs, Util.getDefaultClassLoader()); } private  Locator(); static ProgressCheck loadProgressCheck(final String impl); static ProgressCheck loadProgressCheck(final String impl, final JsonObject config); static ProgressCheck loadProgressCheck(final String impl, final JsonObject config,
                                                  final ClassLoader classLoader); static ProgressCheck wrapWithAlias(final ProgressCheck progressCheck, final String alias); static List<ProgressCheck> loadFromCheckSpecs(final List<CheckSpec> checkSpecs); static List<ProgressCheck> loadFromCheckSpecs(final List<CheckSpec> checkSpecs,
                                                         final ClassLoader checkLoader);  }