Examples of FlowDescription


Examples of com.asakusafw.vocabulary.flow.FlowDescription

    public void invalid_script_importer() throws Exception {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        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.vocabulary.flow.FlowDescription

    public void invalid_script_exporter() throws Exception {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        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.vocabulary.flow.FlowDescription

    public void importer_wo_profile() throws Exception {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        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.vocabulary.flow.FlowDescription

    public void importer_w_empty_profile() throws Exception {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        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.vocabulary.flow.FlowDescription

    public void exporter_wo_profile() throws Exception {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        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.vocabulary.flow.FlowDescription

    public void exporter_w_empty_profile() throws Exception {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        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.vocabulary.flow.FlowDescription

    public void validate_output_asc() {
        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", "+value"));

        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.vocabulary.flow.FlowDescription

    public void validate_output_desc() {
        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", "-value"));

        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.vocabulary.flow.FlowDescription

    public void validate_output_complexorder() {
        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", "-length", "+position"));

        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.vocabulary.flow.FlowDescription

        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")
            .delete("**"));

        FlowDescription desc = new IdentityFlow<Line1>(in, out);
        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.