use of org.testng.annotations.BeforeClass in project incubator-gobblin by apache.
the class JsonStringToJsonIntermediateConverterTest method setUp.
@BeforeClass
public static void setUp() throws SchemaConversionException {
converter = new JsonStringToJsonIntermediateConverter();
WorkUnitState workUnit = new WorkUnitState();
workUnit.getPropAsBoolean("gobblin.converter.jsonStringToJsonIntermediate.unpackComplexSchemas", true);
converter.convertSchema("[]", workUnit);
Type jsonType = new TypeToken<JsonObject>() {
}.getType();
Gson gson = new Gson();
testJsonData = gson.fromJson(new InputStreamReader(JsonStringToJsonIntermediateConverterTest.class.getResourceAsStream("/converter/JsonStringToJsonIntermediateConverter.json")), jsonType);
}
use of org.testng.annotations.BeforeClass in project incubator-gobblin by apache.
the class FsRenameCommitStepTest method setUp.
@BeforeClass
public void setUp() throws IOException {
this.fs = FileSystem.getLocal(new Configuration());
this.fs.delete(new Path(ROOT_DIR), true);
Path dir1 = new Path(ROOT_DIR, "dir1");
Path dir2 = new Path(ROOT_DIR, "dir2");
this.fs.mkdirs(dir1);
this.fs.mkdirs(dir2);
Path src = new Path(dir1, "file");
Path dst = new Path(dir2, "file");
this.fs.createNewFile(src);
this.step = (FsRenameCommitStep) new FsRenameCommitStep.Builder<>().from(src).to(dst).withProps(new State()).build();
}
use of org.testng.annotations.BeforeClass in project incubator-gobblin by apache.
the class HiveSourceTest method setup.
@BeforeClass
public void setup() throws Exception {
this.hiveMetastoreTestUtils = LocalHiveMetastoreTestUtils.getInstance();
this.hiveSource = new HiveSource();
}
use of org.testng.annotations.BeforeClass in project incubator-gobblin by apache.
the class FileAwareInputStreamDataWriterTest method setup.
@BeforeClass
public void setup() throws Exception {
fs = FileSystem.getLocal(new Configuration());
testTempPath = new Path(Files.createTempDir().getAbsolutePath(), "InputStreamDataWriterTest");
fs.mkdirs(testTempPath);
}
use of org.testng.annotations.BeforeClass in project incubator-gobblin by apache.
the class TarArchiveInputStreamDataWriterTest method setup.
@BeforeClass
public void setup() throws Exception {
fs = FileSystem.getLocal(new Configuration());
testTempPath = new Path(Files.createTempDir().getAbsolutePath(), "tarArchiveInputStreamDataWriterTest");
fs.mkdirs(testTempPath);
}
Aggregations