Examples of FlowDescriptionDriver


Examples of com.asakusafw.compiler.flow.FlowDescriptionDriver

     * exporter description w/o profile name.
     * @throws Exception if failed
     */
    @Test
    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.compiler.flow.FlowDescriptionDriver

     * exporter description w/o profile name.
     * @throws Exception if failed
     */
    @Test
    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.compiler.flow.FlowDescriptionDriver

    /**
     * invalid output resource.
     */
    @Test
    public void invalid_output_resource() {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        In<Line1> in = flow.createIn("in1", new Input(format, "input", "input.txt"));
        Out<Line1> out = flow.createOut("out1",
                new Output(Line1.class, format, "output", "?", "position"));

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

Examples of com.asakusafw.compiler.flow.FlowDescriptionDriver

    /**
     * invalid output resource.
     */
    @Test
    public void invalid_output_order() {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        In<Line1> in = flow.createIn("in1", new Input(format, "input", "input.txt"));
        Out<Line1> out = flow.createOut("out1",
                new Output(Line1.class, format, "output", "output.txt", "?"));

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

Examples of com.asakusafw.compiler.flow.FlowDescriptionDriver

    /**
     * invalid output resource.
     */
    @Test
    public void invalid_output_wildcard_and_property() {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        In<Line1> in = flow.createIn("in1", new Input(format, "input", "input.txt"));
        Out<Line1> out = flow.createOut("out1",
                new Output(Line1.class, format, "output", "{value}-*"));

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

Examples of com.asakusafw.compiler.flow.FlowDescriptionDriver

    /**
     * invalid output resource.
     */
    @Test
    public void invalid_output_wildcard_and_random() {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        In<Line1> in = flow.createIn("in1", new Input(format, "input", "input.txt"));
        Out<Line1> out = flow.createOut("out1",
                new Output(Line1.class, format, "output", "*-[1..10]"));

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

Examples of com.asakusafw.compiler.flow.FlowDescriptionDriver

    /**
     * invalid output resource.
     */
    @Test
    public void invalid_output_wildcard_and_order() {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        In<Line1> in = flow.createIn("in1", new Input(format, "input", "input.txt"));
        Out<Line1> out = flow.createOut("out1",
                new Output(Line1.class, format, "output", "*.csv", "position"));

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

Examples of com.asakusafw.compiler.flow.FlowDescriptionDriver

    /**
     * invalid output delete.
     */
    @Test
    public void invalid_output_delete() {
        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(nullValue()));
View Full Code Here

Examples of com.asakusafw.compiler.flow.FlowDescriptionDriver

    /**
     * invalid output format.
     */
    @Test
    public void no_output_format() {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        In<Line1> in = flow.createIn("in1", new Input(format, "input", "input.txt"));
        Out<Line1> out = flow.createOut("out1",
                new Output(Line1.class, null, "output", "output.txt", "position"));

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

Examples of com.asakusafw.compiler.flow.FlowDescriptionDriver

    /**
     * invalid output format.
     */
    @Test
    public void invalid_output_format() {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        In<Line1> in = flow.createIn("in1", new Input(format, "input", "input.txt"));
        Out<Line1> out = flow.createOut("out1",
                new Output(Line1.class, PrivateFormat.class, "output", "output.txt", "position"));

        FlowDescription desc = new IdentityFlow<Line1>(in, out);
        JobflowInfo info = compile(flow, desc);
        assertThat(info, is(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.