[Fix-7195] The file path of 2.0.1-schema used a wrong separator. (#7200)
This commit is contained in:
parent
c7b06b0079
commit
705ba74f52
|
|
@ -17,6 +17,11 @@
|
|||
|
||||
package org.apache.dolphinscheduler.dao.upgrade;
|
||||
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
|
|
@ -57,4 +62,15 @@ public class SchemaUtilsTest {
|
|||
// This is expected
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetAllSchemaList() {
|
||||
List<String> list = null;
|
||||
try {
|
||||
list = SchemaUtils.getAllSchemaList();
|
||||
} catch (IOException ex) {
|
||||
Assert.fail(ex.getMessage());
|
||||
}
|
||||
Assert.assertFalse("Can not find any schema files", CollectionUtils.isEmpty(list));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue