Examples of GateScript


Examples of com.asakusafw.windgate.core.GateScript

    public void prepare() throws Exception {
        FileResourceMirror resource = new FileResourceMirror(profile(), new ParameterList());
        try {
            ProcessScript<StringBuilder> a = process("a", driver("source"), dummy());
            ProcessScript<StringBuilder> b = process("b", dummy(), driver("drain"));
            GateScript gate = script(a, b);
            resource.prepare(gate);
        } finally {
            resource.close();
        }
    }
View Full Code Here

Examples of com.asakusafw.windgate.core.GateScript

    public void prepare_invalid_variable() throws Exception {
        FileResourceMirror resource = new FileResourceMirror(profile(), new ParameterList());
        try {
            ProcessScript<StringBuilder> a = process("a", driver("${invalid_var}"), dummy());
            ProcessScript<StringBuilder> b = process("b", dummy(), driver("drain"));
            GateScript gate = script(a, b);
            resource.prepare(gate);
            fail();
        } finally {
            resource.close();
        }
View Full Code Here

Examples of com.asakusafw.windgate.core.GateScript

        FileResourceMirror resource = new FileResourceMirror(profile(), new ParameterList());
        try {
            ProcessScript<StringBuilder> a = process("a", driverScript, dummy());
            ProcessScript<StringBuilder> b = process("b", dummy(), driver("drain"));
            GateScript gate = script(a, b);
            resource.prepare(gate);
            fail();
        } finally {
            resource.close();
        }
View Full Code Here

Examples of com.asakusafw.windgate.core.GateScript

        FileResourceMirror resource = new FileResourceMirror(profile(), new ParameterList());
        try {
            ProcessScript<StringBuilder> a = process("a", driver("source"), dummy());
            ProcessScript<StringBuilder> b = process("b", dummy(), driverScript);
            GateScript gate = script(a, b);
            resource.prepare(gate);
            fail();
        } finally {
            resource.close();
        }
View Full Code Here

Examples of com.asakusafw.windgate.core.GateScript

        Arrays.sort(expected);
        assertThat(actual, is(Arrays.asList(expected)));
    }

    private GateScript script(ProcessScript<?>... processes) {
        return new GateScript("testing", Arrays.<ProcessScript<?>>asList(processes));
    }
View Full Code Here

Examples of com.asakusafw.windgate.core.GateScript

    private HadoopFsProfile profile() {
        return new HadoopFsProfile("target", working);
    }

    private GateScript script(ProcessScript<?>... processes) {
        return new GateScript("testing", Arrays.asList(processes));
    }
View Full Code Here

Examples of com.asakusafw.windgate.core.GateScript

        return results;
    }


    private GateScript script(ProcessScript<?>... processes) {
        return new GateScript("testing", Arrays.asList(processes));
    }
View Full Code Here

Examples of com.asakusafw.windgate.core.GateScript

            resource.close();
        }
    }

    private GateScript gate(ProcessScript<?>... scripts) {
        return new GateScript("testing", Arrays.asList(scripts));
    }
View Full Code Here

Examples of com.asakusafw.windgate.core.GateScript

            TestDriverContext context,
            ClassLoader classLoader,
            GateProfile profile,
            TestExecutionPlan.Command command) throws IOException {
        List<String> cmd = command.getCommandTokens();
        GateScript script = loadScript(context, classLoader, cmd.get(ARG_SCRIPT));
        String sessionId = context.getExecutionId();
        ExecutionKind mode = ExecutionKind.parse(cmd.get(ARG_SESSION_KIND));
        String arguments = cmd.get(ARG_ARGUMENTS);
        GateTask task = new GateTask(
                profile,
View Full Code Here

Examples of com.asakusafw.windgate.core.GateScript

    private Map<String, GateScript> toGateScripts(Map<String, List<ProcessScript<?>>> processes) {
        assert processes != null;
        Map<String, GateScript> results = new TreeMap<String, GateScript>();
        for (Map.Entry<String, List<ProcessScript<?>>> entry : processes.entrySet()) {
            results.put(entry.getKey(), new GateScript(entry.getKey(), entry.getValue()));
        }
        return results;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.