Search in sources :

Example 1 with PullRequestConfig

use of com.cloudogu.scm.review.config.service.PullRequestConfig in project scm-review-plugin by scm-manager.

the class RepositoryConfigResourceTest method init.

@BeforeEach
void init() {
    configResource = new RepositoryConfigResource(configService, new RepositoryConfigMapperImpl(), repositoryManager);
    dispatcher = new RestDispatcher();
    dispatcher.addSingletonResource(configResource);
    lenient().when(uriInfo.getBaseUri()).thenReturn(URI.create("localhost/scm/api"));
    lenient().when(configService.getRepositoryPullRequestConfig(REPOSITORY)).thenReturn(new PullRequestConfig());
}
Also used : RestDispatcher(sonia.scm.web.RestDispatcher) PullRequestConfig(com.cloudogu.scm.review.config.service.PullRequestConfig) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

PullRequestConfig (com.cloudogu.scm.review.config.service.PullRequestConfig)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1 RestDispatcher (sonia.scm.web.RestDispatcher)1