use of com.cloudogu.scm.review.config.service.GlobalPullRequestConfig in project scm-review-plugin by scm-manager.
the class RepositoryLinkEnricherTest method mockGlobalConfig.
private void mockGlobalConfig(boolean disableRepoConfig) {
GlobalPullRequestConfig globalConfig = new GlobalPullRequestConfig();
globalConfig.setDisableRepositoryConfiguration(disableRepoConfig);
when(configService.getGlobalPullRequestConfig()).thenReturn(globalConfig);
}
use of com.cloudogu.scm.review.config.service.GlobalPullRequestConfig in project scm-review-plugin by scm-manager.
the class GlobalConfigResourceTest method init.
@BeforeEach
void init() {
configResource = new GlobalConfigResource(configService, new GlobalConfigMapperImpl());
dispatcher = new RestDispatcher();
dispatcher.addSingletonResource(configResource);
lenient().when(uriInfo.getBaseUri()).thenReturn(URI.create("localhost/scm/api"));
lenient().when(configService.getGlobalPullRequestConfig()).thenReturn(new GlobalPullRequestConfig());
}
Aggregations