use of org.jenkins.plugins.audit2db.DbAuditPublisher in project selenium_java by sergueik.
the class WhenTestingDataSource method testValidJdbcDatasourceShouldSucceed.
@Test
public void testValidJdbcDatasourceShouldSucceed() throws Exception {
final DbAuditPublisher publisher = new DbAuditPublisherImpl();
final DbAuditPublisherDescriptor descriptor = (DbAuditPublisherDescriptor) publisher.getDescriptor();
final FormValidation testResult = descriptor.doTestJdbcConnection(jdbcDriver, jdbcUrl, jdbcUser, jdbcPassword);
Assert.assertEquals("Unexpected connection error.", FormValidation.Kind.OK, testResult.kind);
}
Aggregations