Skip to content

Commit

Permalink
add more UT Case
Browse files Browse the repository at this point in the history
  • Loading branch information
luchunliang committed Sep 3, 2024
1 parent f7af914 commit 84e9c05
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,17 @@ public void testCsv2Star() throws Exception {
List<String> output3 = processor3.transform("2024-04-28 00:00:00|nok", new HashMap<>());
Assert.assertEquals(1, output3.size());
Assert.assertEquals(output3.get(0), "2024-04-28 00:00:00|nok|nok|2024-04-28 00:00:00");
// case4
CsvSourceInfo csvSourceNoField = new CsvSourceInfo("UTF-8", '|', '\\', new ArrayList<>());
CsvSinkInfo csvSinkNoField = new CsvSinkInfo("UTF-8", '|', '\\', new ArrayList<>());
config.setTransformSql("select * from source where extinfo!='ok'");
TransformProcessor<String, String> processor4 = TransformProcessor
.create(config, SourceDecoderFactory.createCsvDecoder(csvSourceNoField),
SinkEncoderFactory.createCsvEncoder(csvSinkNoField));

List<String> output4 = processor4.transform("2024-04-28 00:00:00|nok", new HashMap<>());
Assert.assertEquals(1, output4.size());
Assert.assertEquals(output4.get(0), "2024-04-28 00:00:00|nok");
}

@Test
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
<module>inlong-sort-standalone</module>
<module>inlong-manager</module>
<module>inlong-dashboard</module>
<module>inlong-distribution</module>
</modules>

<properties>
Expand Down

0 comments on commit 84e9c05

Please sign in to comment.