use of net.nemerosa.ontrack.ui.controller.MockURIBuilder in project ontrack by nemerosa.
the class AbstractResourceTest method before.
@Before
public void before() {
securityService = Mockito.mock(SecurityService.class);
mapper = new ResourceObjectMapperFactory().resourceObjectMapper(Collections.emptyList(), new DefaultResourceContext(new MockURIBuilder(), securityService));
}
use of net.nemerosa.ontrack.ui.controller.MockURIBuilder 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.ui.controller.MockURIBuilder 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);
}
use of net.nemerosa.ontrack.ui.controller.MockURIBuilder in project ontrack by nemerosa.
the class CoreResourceModuleTest method before.
@Before
public void before() {
securityService = mock(SecurityService.class);
structureService = mock(StructureService.class);
ResourceDecorationContributorService resourceDecorationContributorService = mock(ResourceDecorationContributorService.class);
projectFavouriteService = mock(ProjectFavouriteService.class);
mapper = new ResourceObjectMapperFactory().resourceObjectMapper(Collections.singletonList(new DefaultResourceModule(Arrays.asList(new ConnectedAccountResourceDecorator(), new ProjectResourceDecorator(resourceDecorationContributorService, projectFavouriteService), new BranchResourceDecorator(resourceDecorationContributorService, structureService), new PromotionLevelResourceDecorator(), new ValidationStampResourceDecorator(), new BuildResourceDecorator(resourceDecorationContributorService), new PromotionRunResourceDecorator(), new ValidationRunResourceDecorator(), new BuildFilterResourceDecorator(), new AccountResourceDecorator(), new AccountGroupResourceDecorator(), new GlobalPermissionResourceDecorator(), new ProjectPermissionResourceDecorator(), new JobStatusResourceDecorator(), new PredefinedValidationStampResourceDecorator()))), new DefaultResourceContext(new MockURIBuilder(), securityService));
}
use of net.nemerosa.ontrack.ui.controller.MockURIBuilder in project ontrack by nemerosa.
the class GitChangeLogResourceDecoratorTest method before.
@Before
public void before() {
SecurityService securityService = mock(SecurityService.class);
gitService = mock(GitService.class);
mapper = new ResourceObjectMapperFactory().resourceObjectMapper(new DefaultResourceContext(new MockURIBuilder(), securityService), new GitChangeLogResourceDecorator(gitService));
}
Aggregations