Package com.asakusafw.testdriver.testing.flowpart

Examples of com.asakusafw.testdriver.testing.flowpart.SimpleFlowPart


        FlowPartTester tester = new FlowPartTester(getClass());
        tester.getDriverContext().useSystemBatchApplicationsInstallationPath(true);
        tester.setFrameworkHomePath(framework.getHome());
        In<Simple> in = tester.input("in", Simple.class).prepare("data/simple-in.json");
        Out<Simple> out = tester.output("out", Simple.class).verify("data/simple-out.json", new IdentityVerifier());
        tester.runTest(new SimpleFlowPart(in, out));

        assertThat(getDefaultBatchappsLocation().exists(), is(true));
    }
View Full Code Here


    public void simple() {
        FlowPartTester tester = new FlowPartTester(getClass());
        tester.setFrameworkHomePath(framework.getHome());
        In<Simple> in = tester.input("in", Simple.class).prepare("data/simple-in.json");
        Out<Simple> out = tester.output("out", Simple.class).verify("data/simple-out.json", new IdentityVerifier());
        tester.runTest(new SimpleFlowPart(in, out));
    }
View Full Code Here

        tester.setFrameworkHomePath(framework.getHome());
        In<Simple> in = tester.input("in", Simple.class).prepare("data/simple-in.json");
        Out<Simple> out = tester.output("out", Simple.class)
            .verify("data/simple-out.json", new IdentityVerifier())
            .dumpActual(target.getPath());
        tester.runTest(new SimpleFlowPart(in, out));
        assertThat(target.exists(), is(true));
    }
View Full Code Here

        FlowPartTester tester = new FlowPartTester(getClass());
        tester.setFrameworkHomePath(framework.getHome());
        In<Simple> in = tester.input("in", Simple.class).prepare("data/simple-in.json");
        Out<Simple> out = tester.output("out", Simple.class)
            .dumpActual(target.getPath());
        tester.runTest(new SimpleFlowPart(in, out));
        assertThat(target.exists(), is(true));
    }
View Full Code Here

        tester.setFrameworkHomePath(framework.getHome());
        In<Simple> in = tester.input("in", Simple.class).prepare("data/simple-in.json");
        Out<Simple> out = tester.output("out", Simple.class)
            .verify("data/simple-out.json", new IdentityVerifier())
            .dumpActual(target.toURI().toString());
        tester.runTest(new SimpleFlowPart(in, out));
        assertThat(target.exists(), is(true));
    }
View Full Code Here

        tester.setFrameworkHomePath(framework.getHome());
        In<Simple> in = tester.input("in", Simple.class).prepare("data/simple-in.json");
        Out<Simple> out = tester.output("out", Simple.class)
            .verify("data/simple-out.json", new IdentityVerifier())
            .dumpActual(target);
        tester.runTest(new SimpleFlowPart(in, out));
        assertThat(target.exists(), is(true));
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.testdriver.testing.flowpart.SimpleFlowPart

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.