[Fix-7195] The file path of 2.0.1-schema used a wrong separator. (#7200)

This commit is contained in:
Hua Jiang 2021-12-06 17:29:11 +08:00 committed by GitHub
parent c7b06b0079
commit 705ba74f52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 0 deletions

View File

@ -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));
}
}