use of com.bakdata.conquery.integration.json.JsonIntegrationTest in project conquery by bakdata.
the class IntegrationTests method readTest.
private static DynamicTest readTest(Resource resource, String name, IntegrationTests integrationTests) {
try (InputStream in = resource.open()) {
JsonIntegrationTest test = new JsonIntegrationTest(in);
ConqueryConfig conf = getConfigOverride(test, integrationTests.getWorkDir());
name = test.getTestSpec().getLabel();
TestConquery conquery = getCachedConqueryInstance(integrationTests.getWorkDir(), conf);
return DynamicTest.dynamicTest(name, URI.create("classpath:/" + resource.getPath()), new IntegrationTest.Wrapper(name, conquery, test));
} catch (Exception e) {
return DynamicTest.dynamicTest(name, resource.getURI(), () -> {
throw e;
});
}
}
Aggregations