Package com.asakusafw.bulkloader.bean

Examples of com.asakusafw.bulkloader.bean.ExporterBean


        Map<String, ExportTargetTableBean> targetTable = new LinkedHashMap<String, ExportTargetTableBean>();
        ExportTargetTableBean table1 = new ExportTargetTableBean();
        targetTable.put("EXP_TARGET11", table1);
        ExportTargetTableBean table2 = new ExportTargetTableBean();
        targetTable.put("EXP_TARGET22", table2);
        ExporterBean bean = new ExporterBean();
        bean.setJobflowSid("14");
        bean.setExportTargetTable(targetTable);
        bean.setJobflowId(testJobflowId1);
        bean.setExecutionId(testExecutionId);

        File testFile = folder.newFile("testing");
        ExportFileReceive receive = new Mock(testFile, "src/test/data/exporter/SEND_OUT1.zip");
        boolean result = receive.receiveFile(bean);
View Full Code Here


        Map<String, ExportTargetTableBean> targetTable = new LinkedHashMap<String, ExportTargetTableBean>();
        ExportTargetTableBean table1 = new ExportTargetTableBean();
        targetTable.put("EXP_TARGET1", table1);
        ExportTargetTableBean table2 = new ExportTargetTableBean();
        targetTable.put("EXP_TARGET2", table2);
        ExporterBean bean = new ExporterBean();
        bean.setJobflowSid("15");
        bean.setExportTargetTable(targetTable);
        bean.setJobflowId(testJobflowId1);
        bean.setExecutionId(testExecutionId);

        File testFile = folder.newFile("testing");
        ExportFileReceive receive = new Mock(testFile, "src/test/data/exporter/SEND_OUT1.zip") {
            @Override
            protected FileListProvider openFileList(
View Full Code Here

        Map<String, ExportTargetTableBean> targetTable = new LinkedHashMap<String, ExportTargetTableBean>();
        ExportTargetTableBean table1 = new ExportTargetTableBean();
        targetTable.put("EXP_TARGET1", table1);
        ExportTargetTableBean table2 = new ExportTargetTableBean();
        targetTable.put("EXP_TARGET2", table2);
        ExporterBean bean = new ExporterBean();
        bean.setJobflowSid("16");
        bean.setExportTargetTable(targetTable);
        bean.setJobflowId(testJobflowId1);
        bean.setExecutionId(testExecutionId);
        File testFile = folder.newFile("testing");

        ExportFileReceive receive = new Mock(testFile, "src/test/data/exporter/SEND_OUT1.zip", false);
        boolean result = receive.receiveFile(bean);
View Full Code Here

        table2.setExportTableColumns(Arrays.asList(new String[]{"TEXTDATA2", "INTDATA2", "DATEDATA2"}));
        table2.setKeyColumns(Arrays.asList(new String[]{"TEXTDATA2"}));
        table2.setErrorTableName("IMPORT_TARGET2_ERROR");
        table2.setErrorTableColumns(Arrays.asList(new String[]{"TEXTDATA2", "INTDATA2", "DATEDATA2"}));
        targetTable.put("IMPORT_TARGET2", table2);
        ExporterBean bean = new ExporterBean();
        bean.setExportTargetTable(targetTable);
        bean.setJobflowSid("11");
        bean.setJobflowId(jobflowId);
        bean.setExecutionId(executionId);

        // テスト対象クラスを生成
        ExportFileLoad load = new ExportFileLoad() {
            @Override
            protected long getTempSeq(String jobflowSid, String tableName,
View Full Code Here

        ExportTargetTableBean table2 = new ExportTargetTableBean();
        table2.setDuplicateCheck(false);
        table2.addExportFile(new File(new File ("src/test/data/exporter/EXP_EXP_TARGET2_1.tsv").getAbsolutePath()));
        table2.setExportTsvColumns(Arrays.asList(new String[]{"TEXTDATA2", "INTDATA2", "DATEDATA2"}));
        targetTable.put("IMPORT_TARGET2", table2);
        ExporterBean bean = new ExporterBean();
        bean.setExportTargetTable(targetTable);
        bean.setJobflowSid("11");
        bean.setJobflowId(jobflowId);
        bean.setExecutionId(executionId);

        // テスト対象クラスを生成
        ExportFileLoad load = new ExportFileLoad() {
            @Override
            protected long getTempSeq(String jobflowSid, String tableName,
View Full Code Here

        ExportTargetTableBean table2 = new ExportTargetTableBean();
        table2.setDuplicateCheck(false);
        table2.addExportFile(new File(new File ("src/test/data/exporter/EXP_EXP_TARGET2_1.tsv").getAbsolutePath()));
        table2.setExportTsvColumns(Arrays.asList(new String[]{"TEXTDATA2", "DATEDATA2"}));
        targetTable.put("IMPORT_TARGET2", table2);
        ExporterBean bean = new ExporterBean();
        bean.setExportTargetTable(targetTable);
        bean.setJobflowSid("11");
        bean.setJobflowId(jobflowId);
        bean.setExecutionId(executionId);

        // テスト対象クラスを生成
        ExportFileLoad load = new ExportFileLoad() {
            @Override
            protected long getTempSeq(String jobflowSid, String tableName,
View Full Code Here

        table1.setExportTableColumns(Arrays.asList(new String[]{"TEXTDATA1", "INTDATA1", "DATEDATA1"}));
        table1.setKeyColumns(Arrays.asList(new String[]{"TEXTDATA1", "INTDATA1"}));
        table1.setErrorTableName("IMPORT_TARGET1_ERROR");
        table1.setErrorTableColumns(Arrays.asList(new String[]{"TEXTDATA1", "INTDATA1", "DATEDATA1"}));
        targetTable.put("IMPORT_TARGET1", table1);
        ExporterBean bean = new ExporterBean();
        bean.setExportTargetTable(targetTable);
        bean.setJobflowSid("11");
        bean.setJobflowId(jobflowId);
        bean.setExecutionId(executionId);

        // テスト対象クラスを生成
        ExportFileLoad load = new ExportFileLoad() {
            @Override
            protected long getTempSeq(String jobflowSid, String tableName,
View Full Code Here

        table1.addExportFile(new File(new File ("src/test/data/exporter/EXP_EXP_TARGET1_2.tsv").getAbsolutePath()));
        table1.setExportTsvColumns(Arrays.asList(new String[]{"SID", "VERSION_NO", "TEXTDATA1", "INTDATA1", "DATEDATA1"}));
        table1.setExportTableColumns(Arrays.asList(new String[]{"SID", "VERSION_NO", "TEXTDATA1"}));
        table1.setErrorTableColumns(Arrays.asList(new String[]{"INTDATA1"}));
        targetTable.put("IMPORT_TARGET1", table1);
        ExporterBean bean = new ExporterBean();
        bean.setExportTargetTable(targetTable);
        bean.setJobflowSid("11");
        bean.setJobflowId(jobflowId);
        bean.setExecutionId(executionId);

        // テスト対象クラスを生成
        ExportFileLoad load = new ExportFileLoad() {
            @Override
            protected long getTempSeq(String jobflowSid, String tableName,
View Full Code Here

       table1.setExportTableColumns(Arrays.asList(new String[] {"SID", "VERSION_NO", "TEXTDATA1"}));
       table1.setKeyColumns(Arrays.asList(new String[]{"TEXTDATA1"}));
       table1.setErrorTableName("IMPORT_TARGET2_ERROR");
       table1.setErrorTableColumns(Arrays.asList(new String[] {"SID", "VERSION_NO", "INTDATA2", "DATEDATA2"}));
       targetTable.put("IMPORT_TARGET1", table1);
       ExporterBean bean = new ExporterBean();
       bean.setExportTargetTable(targetTable);
       bean.setJobflowSid("11");
       bean.setJobflowId(jobflowId);
       bean.setExecutionId(executionId);

       // テスト対象クラスを生成
       ExportFileLoad load = new ExportFileLoad() {
           @Override
           protected long getTempSeq(String jobflowSid, String tableName,
View Full Code Here

     * @throws Exception
     */
    @Test
    public void judgeTest01() throws Exception {
        // 入力値の生成
        ExporterBean bean = new ExporterBean();
        bean.setJobflowSid("11");
        bean.setJobflowId("jobflow1");
        bean.setExecutionId("11-1");
        Map<String, ExportTargetTableBean> targetTable = new HashMap<String, ExportTargetTableBean>();
        targetTable.put("table1", new ExportTargetTableBean());
        targetTable.put("table2", new ExportTargetTableBean());
        bean.setExportTargetTable(targetTable);

        Properties p = ConfigurationLoader.getProperty();
        p.setProperty(Constants.PROP_KEY_EXPORT_TSV_DELETE, TsvDeleteType.TRUE.getSymbol());
        ConfigurationLoader.setProperty(p);

View Full Code Here

TOP

Related Classes of com.asakusafw.bulkloader.bean.ExporterBean

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.