mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-03 14:42:20 +08:00
create test case
This commit is contained in:
parent
906cc24ba1
commit
24952af5c3
@ -0,0 +1,20 @@
|
|||||||
|
package com.alibaba.datax.core;
|
||||||
|
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class TestMysql2TDengine {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test() {
|
||||||
|
System.out.println(System.getProperty("java.library.path"));
|
||||||
|
String[] params = {"-mode", "standalone", "-jobid", "-1", "-job", "src/main/job/mysql2tdengine.json"};
|
||||||
|
System.setProperty("datax.home", "../target/datax/datax");
|
||||||
|
try {
|
||||||
|
Engine.entry(params);
|
||||||
|
} catch (Throwable e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user