mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-02 04:40:54 +08:00
22 lines
469 B
Java
22 lines
469 B
Java
package com.alibaba.datax.example;
|
|
|
|
import org.junit.Before;
|
|
|
|
import java.io.File;
|
|
|
|
/**
|
|
* {@code Author} FuYouJ
|
|
* {@code Date} 2023/7/29 18:23
|
|
*/
|
|
|
|
public abstract class ExampleTestTemplate {
|
|
|
|
@Before
|
|
public void fixWorkingDirectory(){
|
|
String property = System.getProperty("user.dir");
|
|
File file = new File(property);
|
|
File parentFile = file.getParentFile();
|
|
System.setProperty("user.dir",parentFile.getAbsolutePath());
|
|
}
|
|
}
|