Examples of JobflowInfo


Examples of com.asakusafw.compiler.testing.JobflowInfo

        Out<Simple> out1 = flow.createOut("out1", new Export(Simple.class, "testing", dummy()));
        Out<Simple> out2 = flow.createOut("out2", new Export(Simple.class, "other", dummy()));

        FlowDescription desc = new DualIdentityFlow<Simple>(in1, in2, out1, out2);

        JobflowInfo info = compile(flow, desc);
        assertThat(info, not(nullValue()));
        List<ExternalIoCommandProvider> commands = info.getCommandProviders();
        ExternalIoCommandProvider provider = WindGateIoProcessor.findRelated(commands);
        assertThat(provider, not(nullValue()));

        CommandContext context = new CommandContext("home", "id", "");
        List<Command> importer = provider.getImportCommand(context);
View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

        In<Simple> in = flow.createIn("in1", new Import(Simple.class, "testing", null));
        Out<Simple> out = flow.createOut("out1", new Export(Simple.class, "testing", dummy()));

        FlowDescription desc = new IdentityFlow<Simple>(in, out);

        JobflowInfo info = compile(flow, desc);
        assertThat(info, is(nullValue()));
    }
View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

        In<Simple> in = flow.createIn("in1", new Import(Simple.class, "testing", dummy()));
        Out<Simple> out = flow.createOut("out1", new Export(Simple.class, "testing", null));

        FlowDescription desc = new IdentityFlow<Simple>(in, out);

        JobflowInfo info = compile(flow, desc);
        assertThat(info, is(nullValue()));
    }
View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

        In<Simple> in = flow.createIn("in1", new Import(Simple.class, null, dummy()));
        Out<Simple> out = flow.createOut("out1", new Export(Simple.class, "testing", dummy()));

        FlowDescription desc = new IdentityFlow<Simple>(in, out);

        JobflowInfo info = compile(flow, desc);
        assertThat(info, nullValue());
    }
View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

        In<Simple> in = flow.createIn("in1", new Import(Simple.class, "", dummy()));
        Out<Simple> out = flow.createOut("out1", new Export(Simple.class, "testing", dummy()));

        FlowDescription desc = new IdentityFlow<Simple>(in, out);

        JobflowInfo info = compile(flow, desc);
        assertThat(info, nullValue());
    }
View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

        In<Simple> in = flow.createIn("in1", new Import(Simple.class, "testing", dummy()));
        Out<Simple> out = flow.createOut("out1", new Export(Simple.class, null, dummy()));

        FlowDescription desc = new IdentityFlow<Simple>(in, out);

        JobflowInfo info = compile(flow, desc);
        assertThat(info, nullValue());
    }
View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

        In<Simple> in = flow.createIn("in1", new Import(Simple.class, "testing", dummy()));
        Out<Simple> out = flow.createOut("out1", new Export(Simple.class, "", dummy()));

        FlowDescription desc = new IdentityFlow<Simple>(in, out);

        JobflowInfo info = compile(flow, desc);
        assertThat(info, nullValue());
    }
View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

    @Test
    public void simple() throws Exception {
        In<Simple> in = tester.input("in1", new Import(Simple.class, "testing", dummy("dummy")));
        Out<Simple> out = tester.output("out1", new Export(Simple.class, "testing", dummy("dummy")));

        JobflowInfo info = tester.compileFlow(new IdentityFlow<Simple>(in, out));

        // extract importer destination
        GateScript importerScript = loadScript(info, "testing", true);
        assertThat(importerScript.getProcesses().size(), is(1));
        ProcessScript<?> importer = getProcess(importerScript, "in1");
View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        In<Line1> in = flow.createIn("in1", new Input(format, "input", "input.txt"));
        Out<Line1> out = flow.createOut("out1", new Output(format, "output", "output.txt"));

        FlowDescription desc = new IdentityFlow<Line1>(in, out);
        JobflowInfo info = compile(flow, desc);
        assertThat(info, is(not(nullValue())));
    }
View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

                new Output(Line1.class, format, "output-1", "output.txt"));
        Out<Line2> out2 = flow.createOut("out2",
                new Output(Line2.class, format, "output-2", "output.txt"));

        FlowDescription desc = new DualIdentityFlow<Line1, Line2>(in1, in2, out1, out2);
        JobflowInfo info = compile(flow, desc);
        assertThat(info, is(not(nullValue())));
    }
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.