use of org.talend.components.jdbc.runtime.dataprep.JDBCDatastoreRuntime in project components by Talend.
the class JDBCDatasetTestIT method testDoHealthChecks.
@Test
public void testDoHealthChecks() {
JDBCDatasetProperties dataset = createDatasetProperties(true);
JDBCDatastoreRuntime runtime = new JDBCDatastoreRuntime();
runtime.initialize(null, dataset.getDatastoreProperties());
Iterable<ValidationResult> result = runtime.doHealthChecks(null);
Assert.assertNotNull(result);
Iterator<ValidationResult> iterator = result.iterator();
Assert.assertTrue(iterator.hasNext());
Assert.assertEquals(ValidationResult.Result.OK, iterator.next().getStatus());
}
Aggregations