update testfactory displayname

This commit is contained in:
Eduard Heimbuch
2019-10-17 09:36:06 +02:00
parent e91a3eac6a
commit 0b2bbcb0da

View File

@@ -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));