mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 18:51:10 +01:00
update testfactory displayname
This commit is contained in:
@@ -181,7 +181,7 @@ public class RepositoryPermissionRootResourceTest extends RepositoryTestBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@TestFactory
|
@TestFactory
|
||||||
@DisplayName("test endpoints on missing permissions and user is not Admin")
|
@DisplayName("test endpoints on missing permissions and is _anonymous")
|
||||||
Stream<DynamicTest> missedPermissionAnonymousUnauthorizedTestFactory() {
|
Stream<DynamicTest> missedPermissionAnonymousUnauthorizedTestFactory() {
|
||||||
when(subject.getPrincipal()).thenReturn("_anonymous");
|
when(subject.getPrincipal()).thenReturn("_anonymous");
|
||||||
doThrow(AuthorizationException.class).when(repositoryManager).get(any(NamespaceAndName.class));
|
doThrow(AuthorizationException.class).when(repositoryManager).get(any(NamespaceAndName.class));
|
||||||
|
|||||||
Reference in New Issue
Block a user