Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Minimal javadoc on new tests

Signed-off-by: Menahem Julien Raccah Lisei <[email protected]>
  • Loading branch information
menajrl committed Jan 8, 2020
1 parent def386a commit dee6a6e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dee6a6e

Please sign in to comment.