From dee6a6e8edc7100a959459a53e222d8f5f967cbf Mon Sep 17 00:00:00 2001 From: Menahem Julien Raccah Lisei Date: Wed, 8 Jan 2020 10:17:25 +0100 Subject: [PATCH] #2088: * Minimal javadoc on new tests Signed-off-by: Menahem Julien Raccah Lisei --- .../vorto/repository/account/UserAccountServiceTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/repository/repository-core/src/test/java/org/eclipse/vorto/repository/account/UserAccountServiceTest.java b/repository/repository-core/src/test/java/org/eclipse/vorto/repository/account/UserAccountServiceTest.java index 9d738b3b8e..38b706e012 100644 --- a/repository/repository-core/src/test/java/org/eclipse/vorto/repository/account/UserAccountServiceTest.java +++ b/repository/repository-core/src/test/java/org/eclipse/vorto/repository/account/UserAccountServiceTest.java @@ -65,11 +65,17 @@ public void testCreateUserAlreadyExists() throws Exception { accountService.create(user.getUsername(), "GITHUB", null); } + /** + * Tests that creating a technical user and adding to a non-existing namespace fails. + */ @Test(expected = IllegalArgumentException.class) public void testCreateTechnicalUserAndAddToNonExistingNamespace() { accountService.createTechnicalUserAndAddToTenant("doesNotExist", "pepe", "GITHUB", Role.USER); } + /** + * Tests that creating a technical user with no authentication provider fails. + */ @Test(expected = IllegalArgumentException.class) public void testCreateTechnicalUserWithoutAuthenticationProvider() { // this implicitly creates the "playground" namespace