yanghua commented on a change in pull request #1449: [WIP][HUDI-698]Add unit
test for CleansCommand
URL: https://github.com/apache/incubator-hudi/pull/1449#discussion_r405274332
##########
File path:
hudi-cli/src/test/java/org/apache/hudi/cli/commands/TestCleansCommand.java
##########
@@ -56,8 +58,16 @@ public void init() throws IOException {
String tableName = "test_table";
tablePath = basePath + File.separator + tableName;
- propsFilePath =
this.getClass().getClassLoader().getResource("clean.properties").getPath();
-
+ propsFilePath =
TestCleansCommand.class.getClassLoader().getResource("clean.properties").getPath();
+ if (propsFilePath == null) {
+ System.out.println("-------------------");
Review comment:
Please make sure we do not use STDOUT in the test case.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services