Package com.asakusafw.yaess.core

Examples of com.asakusafw.yaess.core.CommandScript


     */
    @Test
    public void simple() throws Exception {
        File shell = putScript("arguments.sh", "bin/script.sh");

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

        CommandScriptHandler handler = handler();
View Full Code Here


     */
    @Test
    public void multiple_arguments() throws Exception {
        File shell = putScript("arguments.sh", "bin/script.sh");

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

        CommandScriptHandler handler = handler();
View Full Code Here

     */
    @Test
    public void with_prefix() throws Exception {
        File shell = putScript("arguments.sh", "bin/script.sh");

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

        CommandScriptHandler handler = handler("command.0", shell.getAbsolutePath());
View Full Code Here

     */
    @Test
    public void complex_prefix() throws Exception {
        File shell = putScript("arguments.sh", "bin/script.sh");

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

        CommandScriptHandler handler = handler(
View Full Code Here

     */
    @Test
    public void environment() throws Exception {
        File shell = putScript("environment.sh", "bin/script.sh");

        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");
View Full Code Here

     */
    @Test
    public void runtime_context() throws Exception {
        File shell = putScript("environment.sh", "bin/script.sh");

        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");
View Full Code Here

     */
    @Test(expected = IOException.class)
    public void abnormal_exit() throws Exception {
        File shell = putScript("abnormal.sh", "bin/script.sh");

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

        CommandScriptHandler handler = handler();
View Full Code Here

    @Test(expected = IOException.class)
    public void script_missing() throws Exception {
        File shell = putScript("arguments.sh", "bin/script.sh");
        Assume.assumeThat(shell.delete(), is(true));

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

        CommandScriptHandler handler = handler();
View Full Code Here

     */
    @Test(expected = IOException.class)
    public void invaid_prefix() throws Exception {
        File shell = putScript("arguments.sh", "bin/script.sh");

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

        CommandScriptHandler handler = handler(
View Full Code Here

     */
    @Test
    public void simple() throws Exception {
        File shell = putScript("arguments.sh", "bin/script.sh");

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

        CommandScriptHandler handler = handler();
View Full Code Here

TOP

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

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.