Search in sources :

Example 6 with DbAuditPublisher

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);
}
Also used : FormValidation(hudson.util.FormValidation) DbAuditPublisherImpl(org.jenkins.plugins.audit2db.internal.DbAuditPublisherImpl) DbAuditPublisher(org.jenkins.plugins.audit2db.DbAuditPublisher) DbAuditPublisherDescriptor(org.jenkins.plugins.audit2db.DbAuditPublisherDescriptor) Test(org.junit.Test)

Aggregations

DbAuditPublisher (org.jenkins.plugins.audit2db.DbAuditPublisher)6 Test (org.junit.Test)5 DbAuditPublisherDescriptor (org.jenkins.plugins.audit2db.DbAuditPublisherDescriptor)4 DbAuditPublisherImpl (org.jenkins.plugins.audit2db.internal.DbAuditPublisherImpl)4 FormValidation (hudson.util.FormValidation)3 FreeStyleBuild (hudson.model.FreeStyleBuild)2 FreeStyleProject (hudson.model.FreeStyleProject)2 BuildDetailsRepository (org.jenkins.plugins.audit2db.data.BuildDetailsRepository)2 BuildDetailsImpl (org.jenkins.plugins.audit2db.internal.model.BuildDetailsImpl)2 BuildDetails (org.jenkins.plugins.audit2db.model.BuildDetails)2 BooleanParameterDefinition (hudson.model.BooleanParameterDefinition)1 ParameterDefinition (hudson.model.ParameterDefinition)1 ParametersDefinitionProperty (hudson.model.ParametersDefinitionProperty)1 StringParameterDefinition (hudson.model.StringParameterDefinition)1