Package com.asakusafw.compiler.testing

Examples of com.asakusafw.compiler.testing.DirectExporterDescription


     */
    @Test
    public void validate_no_output() {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        In<Line1> in = flow.createIn("in1", new Input(format, "something", "input.txt"));
        Out<Line1> out = flow.createOut("out1", new DirectExporterDescription(Line1.class, "some/file-*"));

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


         * @return フローへの入力オブジェクト
         * @throws IOException 終了処理に失敗した場合
         * @throws IllegalArgumentException 引数に{@code null}が指定された場合
         */
        public Out<T> flow() throws IOException {
            return flow.createOut(name, new DirectExporterDescription(
                    type,
                    pathPrefix.getParent().append(pathPrefix.getName()).asPrefix().toPath('/')));
        }
View Full Code Here

        super(driverContext.getCallerClass(), driverContext.getRepository(), name, modelType);
        this.descDriver = descDriver;

        String exportPath = FlowPartDriverUtils.createOutputLocation(driverContext, name).toPath('/');
        LOG.info("Export Path=" + exportPath);
        this.exporterDescription = new DirectExporterDescription(modelType, exportPath);
        this.out = descDriver.createOut(name, exporterDescription);
    }
View Full Code Here

     */
    @Test
    public void no_exporters() throws Exception {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        In<Ex1> in1 = flow.createIn("in1", new Import(Mode.PRIMARY, "primary", LockType.TABLE));
        Out<Ex1> out1 = flow.createOut("out1", new DirectExporterDescription(Ex1.class, "a/a-*"));
        FlowDescription desc = new IdentityFlow<Ex1>(in1, out1);

        JobflowInfo info = compile(flow, desc);
        assertThat(info, not(nullValue()));
        List<ExternalIoCommandProvider> commands = info.getCommandProviders();
View Full Code Here

     */
    @Test
    public void only_secondary() throws Exception {
        FlowDescriptionDriver flow = new FlowDescriptionDriver();
        In<Ex1> in1 = flow.createIn("in1", new Import(Mode.SECONDARY, "secondary", LockType.UNUSED));
        Out<Ex1> out1 = flow.createOut("out1", new DirectExporterDescription(Ex1.class, "a/a-*"));
        FlowDescription desc = new IdentityFlow<Ex1>(in1, out1);

        JobflowInfo info = compile(flow, desc);
        assertThat(info, not(nullValue()));
        List<ExternalIoCommandProvider> commands = info.getCommandProviders();
View Full Code Here

        String tableName = testUtils.getTablenameByClass(modelType);
        addCreateOut(tableName, tableName);
        String path = FlowPartDriverUtils.createOutputLocation(driverContext, tableName).toPath('/');
        LOG.info("DirectExporterDescription生成:Path=" + path);
        ExporterDescription desc = new DirectExporterDescription(modelType, path);
        return flowDescriptionDriver.createOut(tableName, desc);
    }
View Full Code Here

        String path = FlowPartDriverUtils.createOutputLocation(driverContext, excelFileName).toPath('/');

        LOG.info("DirectExporterDescription生成:Path=" + excelFileName);

        DirectExporterDescription desc = new DirectExporterDescription(modelType, path);

        String outName;
        int offset = excelFileName.lastIndexOf(System.getProperty("file.separator"));
        if (offset > -1) {
            outName = excelFileName.substring(offset + 1);
View Full Code Here

TOP

Related Classes of com.asakusafw.compiler.testing.DirectExporterDescription

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.