Search in sources :

Example 1 with PropertyService

use of net.nemerosa.ontrack.model.structure.PropertyService in project ontrack by nemerosa.

the class StandardBuildFilterProviderTest method before.

@Before
public void before() {
    StructureService structureService = mock(StructureService.class);
    ValidationRunStatusService validationRunStatusService = mock(ValidationRunStatusService.class);
    PropertyService propertyService = mock(PropertyService.class);
    CoreBuildFilterRepository coreBuildFilterRepository = mock(CoreBuildFilterRepository.class);
    provider = new StandardBuildFilterProvider(structureService, validationRunStatusService, propertyService, coreBuildFilterRepository);
}
Also used : CoreBuildFilterRepository(net.nemerosa.ontrack.repository.CoreBuildFilterRepository) ValidationRunStatusService(net.nemerosa.ontrack.model.structure.ValidationRunStatusService) PropertyService(net.nemerosa.ontrack.model.structure.PropertyService) StructureService(net.nemerosa.ontrack.model.structure.StructureService) Before(org.junit.Before)

Example 2 with PropertyService

use of net.nemerosa.ontrack.model.structure.PropertyService in project ontrack by nemerosa.

the class MetaInfoSearchExtensionTest method before.

@Before
public void before() {
    propertyService = mock(PropertyService.class);
    StructureService structureService = mock(StructureService.class);
    extension = new MetaInfoSearchExtension(new GeneralExtensionFeature(), new MockURIBuilder(), propertyService, structureService);
}
Also used : MockURIBuilder(net.nemerosa.ontrack.ui.controller.MockURIBuilder) PropertyService(net.nemerosa.ontrack.model.structure.PropertyService) StructureService(net.nemerosa.ontrack.model.structure.StructureService) Before(org.junit.Before)

Example 3 with PropertyService

use of net.nemerosa.ontrack.model.structure.PropertyService 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

PropertyService (net.nemerosa.ontrack.model.structure.PropertyService)3 StructureService (net.nemerosa.ontrack.model.structure.StructureService)2 Before (org.junit.Before)2 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 ValidationRunStatusService (net.nemerosa.ontrack.model.structure.ValidationRunStatusService)1 CoreBuildFilterRepository (net.nemerosa.ontrack.repository.CoreBuildFilterRepository)1 MockURIBuilder (net.nemerosa.ontrack.ui.controller.MockURIBuilder)1 Test (org.junit.Test)1