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);
}
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);
}
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()));
}
Aggregations