Search in sources :

Example 1 with GitService

use of net.nemerosa.ontrack.extension.git.service.GitService 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));
}
Also used : SecurityService(net.nemerosa.ontrack.model.security.SecurityService) MockURIBuilder(net.nemerosa.ontrack.ui.controller.MockURIBuilder) GitService(net.nemerosa.ontrack.extension.git.service.GitService) DefaultResourceContext(net.nemerosa.ontrack.ui.resource.DefaultResourceContext) ResourceObjectMapperFactory(net.nemerosa.ontrack.ui.resource.ResourceObjectMapperFactory) Before(org.junit.Before)

Aggregations

GitService (net.nemerosa.ontrack.extension.git.service.GitService)1 SecurityService (net.nemerosa.ontrack.model.security.SecurityService)1 MockURIBuilder (net.nemerosa.ontrack.ui.controller.MockURIBuilder)1 DefaultResourceContext (net.nemerosa.ontrack.ui.resource.DefaultResourceContext)1 ResourceObjectMapperFactory (net.nemerosa.ontrack.ui.resource.ResourceObjectMapperFactory)1 Before (org.junit.Before)1