Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ public void testShouldReturnDuplicateUserErrorLoginWithoutNetId() throws Excepti
.andExpect(redirectedUrl("http://localhost:4000/login/duplicate-user?email=" + email))
.andReturn().getResponse().getHeader("Authorization");

// Check if was created a user with such email and netid.
EPerson ePerson = checkUserWasCreated(netId, IDP_TEST_EPERSON, email, null);
deleteShibbolethUser(ePerson);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whats about if ePerson is null?

}

// This test is copied from the `ShibbolethLoginFilterIT` and modified following the Clarin updates.
Expand Down Expand Up @@ -567,6 +570,7 @@ public void testSuccessFullLoginWithTwoEmails() throws Exception {
checkUserIsSignedIn(token);
// Find the user by the second email
EPerson ePerson = checkUserWasCreated(null, IDP_TEST_EPERSON, secondEmail, null);
assertTrue(Objects.nonNull(ePerson));
deleteShibbolethUser(ePerson);
}

Expand Down