@Test public void confdir_not_exist() throws Exception { Map<String, String> conf = new HashMap<>(); conf.put(ExecutionScriptHandlerDispatcher.KEY_DIRECTORY, new File(folder.getRoot(), "empty").getAbsolutePath()); declare(conf, "default", MockCommandScriptHandler.class); CommandScriptHandlerDispatcher dispatcher = create(conf); assertThat(dispatcher.getResourceId(context("flow"), null), is("default")); }
@Override public String getResourceId( ExecutionContext context, ExecutionScript script) throws InterruptedException, IOException { ExecutionScriptHandler<T> target = resolve(context, script); return target.getResourceId(context, script); }
ExecutionScriptHandlerDispatcher implements ExecutionScriptHandler<T> { @Override public String getResourceId( ExecutionContext context, ExecutionScript script) throws InterruptedException, IOException { ExecutionScriptHandler<T> target = resolve(context, script); return target.getResourceId(context, script); } }
ExecutionScriptHandlerDispatcher implements ExecutionScriptHandler<T> { @Override public String getResourceId( ExecutionContext context, ExecutionScript script) throws InterruptedException, IOException { ExecutionScriptHandler<T> target = resolve(context, script); return target.getResourceId(context, script); } protected  ExecutionScriptHandlerDispatcher(Class<? extends ExecutionScriptHandler<T>> handlerKind); }
ExecutionScriptHandlerDispatcher implements ExecutionScriptHandler<T> { @Override public String getResourceId( ExecutionContext context, ExecutionScript script) throws InterruptedException, IOException { ExecutionScriptHandler<T> target = resolve(context, script); return target.getResourceId(context, script); } protected  ExecutionScriptHandlerDispatcher(Class<? extends ExecutionScriptHandler<T>> handlerKind); @Override void configure(ServiceProfile<?> profile); @Override String getHandlerId(); @Override String getResourceId(
            ExecutionContext context,
            ExecutionScript script); @Override Map<String, String> getProperties(
            ExecutionContext context,
            ExecutionScript script); @Override Map<String, String> getEnvironmentVariables(
            ExecutionContext context,
            ExecutionScript script); @Override void setUp(ExecutionMonitor monitor, ExecutionContext context); @Override void execute(
            ExecutionMonitor monitor,
            ExecutionContext context,
            T script); @Override void cleanUp(ExecutionMonitor monitor, ExecutionContext context); }
ExecutionScriptHandlerDispatcher implements ExecutionScriptHandler<T> { @Override public String getResourceId( ExecutionContext context, ExecutionScript script) throws InterruptedException, IOException { ExecutionScriptHandler<T> target = resolve(context, script); return target.getResourceId(context, script); } protected  ExecutionScriptHandlerDispatcher(Class<? extends ExecutionScriptHandler<T>> handlerKind); @Override void configure(ServiceProfile<?> profile); @Override String getHandlerId(); @Override String getResourceId(
            ExecutionContext context,
            ExecutionScript script); @Override Map<String, String> getProperties(
            ExecutionContext context,
            ExecutionScript script); @Override Map<String, String> getEnvironmentVariables(
            ExecutionContext context,
            ExecutionScript script); @Override void setUp(ExecutionMonitor monitor, ExecutionContext context); @Override void execute(
            ExecutionMonitor monitor,
            ExecutionContext context,
            T script); @Override void cleanUp(ExecutionMonitor monitor, ExecutionContext context);  }