Search in sources :

Example 1 with SVNIssueRevisionDao

use of net.nemerosa.ontrack.extension.svn.db.SVNIssueRevisionDao in project ontrack by nemerosa.

the class SVNRevisionChangeLogIssueValidatorTest method fromStorage.

@Test
public void fromStorage() {
    PropertyService propertyService = mock(PropertyService.class);
    SVNIssueRevisionDao issueRevisionDao = mock(SVNIssueRevisionDao.class);
    SVNRevisionChangeLogIssueValidator validator = new SVNRevisionChangeLogIssueValidator(new SVNExtensionFeature(new SCMExtensionFeature()), propertyService, issueRevisionDao);
    assertEquals(new SVNRevisionChangeLogIssueValidatorConfig(Arrays.asList("Closed", "Resolved")), validator.fromStorage(JsonUtils.object().with("closedStatuses", JsonUtils.stringArray("Closed", "Resolved")).end()));
}
Also used : SVNExtensionFeature(net.nemerosa.ontrack.extension.svn.SVNExtensionFeature) SVNIssueRevisionDao(net.nemerosa.ontrack.extension.svn.db.SVNIssueRevisionDao) PropertyService(net.nemerosa.ontrack.model.structure.PropertyService) SCMExtensionFeature(net.nemerosa.ontrack.extension.scm.SCMExtensionFeature) Test(org.junit.Test)

Aggregations

SCMExtensionFeature (net.nemerosa.ontrack.extension.scm.SCMExtensionFeature)1 SVNExtensionFeature (net.nemerosa.ontrack.extension.svn.SVNExtensionFeature)1 SVNIssueRevisionDao (net.nemerosa.ontrack.extension.svn.db.SVNIssueRevisionDao)1 PropertyService (net.nemerosa.ontrack.model.structure.PropertyService)1 Test (org.junit.Test)1