|
|
@ -17,6 +17,11 @@ |
|
|
|
|
|
|
|
|
|
|
|
package org.apache.dolphinscheduler.dao.upgrade; |
|
|
|
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.Assert; |
|
|
|
import org.junit.Test; |
|
|
|
import org.junit.Test; |
|
|
|
|
|
|
|
|
|
|
@ -57,4 +62,15 @@ public class SchemaUtilsTest { |
|
|
|
// This is expected
|
|
|
|
// 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)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|