Package com.asakusafw.yaess.bootstrap.Yaess

Examples of com.asakusafw.yaess.bootstrap.Yaess.Configuration


        List<String> arguments = new ArrayList<String>();
        Collections.addAll(arguments, "-profile", profile.getAbsolutePath());
        Collections.addAll(arguments, "-script", script.getAbsolutePath());
        Collections.addAll(arguments, "-batch", "tbatch");

        Configuration conf = Yaess.parseConfiguration(arguments.toArray(new String[arguments.size()]));
        assertThat(conf.mode, is(Mode.BATCH));
        assertThat(conf.batchId, is("tbatch"));
        assertThat(conf.flowId, is(nullValue()));
        assertThat(conf.executionId, is(nullValue()));
        assertThat(conf.phase, is(nullValue()));
View Full Code Here


        Collections.addAll(arguments, "-script", script.getAbsolutePath());
        Collections.addAll(arguments, "-batch", "tbatch");
        Collections.addAll(arguments, "-flow", "tflow");
        Collections.addAll(arguments, "-execution", "texec");

        Configuration conf = Yaess.parseConfiguration(arguments.toArray(new String[arguments.size()]));
        assertThat(conf.mode, is(Mode.FLOW));
        assertThat(conf.batchId, is("tbatch"));
        assertThat(conf.flowId, is("tflow"));
        assertThat(conf.executionId, is("texec"));
        assertThat(conf.phase, is(nullValue()));
View Full Code Here

        Collections.addAll(arguments, "-batch", "tbatch");
        Collections.addAll(arguments, "-flow", "tflow");
        Collections.addAll(arguments, "-execution", "texec");
        Collections.addAll(arguments, "-phase", ExecutionPhase.MAIN.getSymbol());

        Configuration conf = Yaess.parseConfiguration(arguments.toArray(new String[arguments.size()]));
        assertThat(conf.mode, is(Mode.PHASE));
        assertThat(conf.batchId, is("tbatch"));
        assertThat(conf.flowId, is("tflow"));
        assertThat(conf.executionId, is("texec"));
        assertThat(conf.phase, is(ExecutionPhase.MAIN));
View Full Code Here

        Collections.addAll(arguments, "-batch", "tbatch");
        Collections.addAll(arguments, "-A", "a=b");
        Collections.addAll(arguments, "-A", "c=d");
        Collections.addAll(arguments, "-A", "e=f");

        Configuration conf = Yaess.parseConfiguration(arguments.toArray(new String[arguments.size()]));
        assertThat(conf.mode, is(Mode.BATCH));
        assertThat(conf.batchId, is("tbatch"));
        assertThat(conf.flowId, is(nullValue()));
        assertThat(conf.executionId, is(nullValue()));
        assertThat(conf.phase, is(nullValue()));
View Full Code Here

TOP

Related Classes of com.asakusafw.yaess.bootstrap.Yaess.Configuration

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.