Search in sources :

Example 1 with StructureService

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

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

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

the class BuildLinkSearchExtensionTest method before.

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

Example 4 with StructureService

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

the class BuildFilterServiceImplTest method before.

@Before
public void before() {
    BuildFilterRepository buildFilterRepository = mock(BuildFilterRepository.class);
    StructureService structureService = mock(StructureService.class);
    SecurityService securityService = mock(SecurityService.class);
    service = new BuildFilterServiceImpl(Collections.singletonList(new StandardBuildFilterProvider(structureService, mock(ValidationRunStatusService.class), mock(PropertyService.class), mock(CoreBuildFilterRepository.class))), buildFilterRepository, structureService, securityService);
}
Also used : CoreBuildFilterRepository(net.nemerosa.ontrack.repository.CoreBuildFilterRepository) BuildFilterRepository(net.nemerosa.ontrack.repository.BuildFilterRepository) SecurityService(net.nemerosa.ontrack.model.security.SecurityService) StructureService(net.nemerosa.ontrack.model.structure.StructureService) Before(org.junit.Before)

Aggregations

StructureService (net.nemerosa.ontrack.model.structure.StructureService)4 Before (org.junit.Before)4 PropertyService (net.nemerosa.ontrack.model.structure.PropertyService)2 CoreBuildFilterRepository (net.nemerosa.ontrack.repository.CoreBuildFilterRepository)2 MockURIBuilder (net.nemerosa.ontrack.ui.controller.MockURIBuilder)2 SecurityService (net.nemerosa.ontrack.model.security.SecurityService)1 ValidationRunStatusService (net.nemerosa.ontrack.model.structure.ValidationRunStatusService)1 BuildFilterRepository (net.nemerosa.ontrack.repository.BuildFilterRepository)1