24 lines
591 B
Java
24 lines
591 B
Java
package it.cavallium.data.generator.plugin;
|
|
|
|
import java.io.IOException;
|
|
import java.nio.file.Path;
|
|
import org.apache.commons.io.FileUtils;
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
public class TestGenerator {
|
|
|
|
//@Test
|
|
public void test() throws IOException {
|
|
var dir = Files.createTempDirectory("data-generator-test");
|
|
try {
|
|
SourcesGenerator.load(this.getClass().getResourceAsStream("/test.yaml")).generateSources("it.test", dir, false, true, false);
|
|
} finally {
|
|
try {
|
|
FileUtils.deleteDirectory(dir.toFile());
|
|
} catch (IOException e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|