Package com.asakusafw.yaess.core

Examples of com.asakusafw.yaess.core.CommandScriptHandler


        CommandScript script = new CommandScript(
                "testing", set(), "profile", "module",
                Arrays.asList(shell.getAbsolutePath(), "Hello, world!"),
                map());

        CommandScriptHandler handler = handler();
        execute(script, handler);

        List<String> results = getOutput(shell);
        assertThat(results, is(Arrays.asList("Hello, world!")));
    }
View Full Code Here


        CommandScript script = new CommandScript(
                "testing", set(), "profile", "module",
                Arrays.asList(shell.getAbsolutePath(), "A", "B", "C", "D"),
                map());

        CommandScriptHandler handler = handler();
        execute(script, handler);

        List<String> results = getOutput(shell);
        assertThat(results, is(Arrays.asList("A", "B", "C", "D")));
    }
View Full Code Here

        CommandScript script = new CommandScript(
                "testing", set(), "profile", "module",
                Arrays.asList("Hello, world!"),
                map());

        CommandScriptHandler handler = handler("command.0", shell.getAbsolutePath());
        execute(script, handler);

        List<String> results = getOutput(shell);
        assertThat(results, is(Arrays.asList("Hello, world!")));
    }
View Full Code Here

        CommandScript script = new CommandScript(
                "testing", set(), "profile", "module",
                Arrays.asList("A", "B", "C"),
                map());

        CommandScriptHandler handler = handler(
                "command.0", shell.getAbsolutePath(),
                "command.1", "@[2]-@[0]-@[1]");
        execute(script, handler);

        List<String> results = getOutput(shell);
View Full Code Here

        CommandScript script = new CommandScript(
                "testing", set(), "profile", "module",
                Arrays.asList(shell.getAbsolutePath()),
                map("script", "SCRIPT", "override", "SCRIPT"));

        CommandScriptHandler handler = handler("env.handler", "HANDLER", "env.override", "HANDLER");
        execute(script, handler);

        List<String> results = getOutput(shell);
        assertThat(results, has(equalToIgnoringWhiteSpace("script=SCRIPT")));
        assertThat(results, has(equalToIgnoringWhiteSpace("handler=HANDLER")));
View Full Code Here

        CommandScript script = new CommandScript(
                "testing", set(), "profile", "module",
                Arrays.asList(shell.getAbsolutePath()),
                map("script", "SCRIPT", "override", "SCRIPT"));

        CommandScriptHandler handler = handler("env.handler", "HANDLER", "env.override", "HANDLER");

        RuntimeContext rc = RuntimeContext.DEFAULT
            .batchId("b")
            .mode(ExecutionMode.SIMULATION)
            .buildId("OK");
View Full Code Here

        CommandScript script = new CommandScript(
                "testing", set(), "profile", "module",
                Arrays.asList(shell.getAbsolutePath(), "Hello, world!"),
                map());

        CommandScriptHandler handler = handler();
        ExecutionContext context = new ExecutionContext(
                "tbatch", "tflow", "texec", ExecutionPhase.MAIN, map());
        handler.execute(ExecutionMonitor.NULL, context, script);
    }
View Full Code Here

     * Invoke setup.
     * @throws Exception if failed
     */
    @Test
    public void setup() throws Exception {
        CommandScriptHandler handler = handler();

        ExecutionContext context = new ExecutionContext(
                "tbatch", "tflow", "texec", ExecutionPhase.SETUP, map());
        handler.setUp(ExecutionMonitor.NULL, context);
    }
View Full Code Here

     * Invoke cleanup.
     * @throws Exception if failed
     */
    @Test
    public void cleanup() throws Exception {
        CommandScriptHandler handler = handler();

        ExecutionContext context = new ExecutionContext(
                "tbatch", "tflow", "texec", ExecutionPhase.CLEANUP, map());
        handler.cleanUp(ExecutionMonitor.NULL, context);
    }
View Full Code Here

        CommandScript script = new CommandScript(
                "testing", set(), "profile", "module",
                Arrays.asList(shell.getAbsolutePath(), "Hello, world!"),
                map());

        CommandScriptHandler handler = handler();
        ExecutionContext context = new ExecutionContext(
                "tbatch", "tflow", "texec", ExecutionPhase.MAIN, map());
        handler.execute(ExecutionMonitor.NULL, context, script);
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.yaess.core.CommandScriptHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.