Fix formatting

This commit is contained in:
Marcus Da Coregio 2021-10-29 14:42:11 -03:00
parent 7426260ee1
commit 482dfc9a59
1 changed files with 1 additions and 2 deletions

View File

@ -74,8 +74,7 @@ public class Saml2LoginApplicationITests {
@Test @Test
void indexWhenSamlResponseThenShowsUserInformation() throws Exception { void indexWhenSamlResponseThenShowsUserInformation() throws Exception {
HttpSession session = this.mvc.perform(get("http://localhost:8080/")).andExpect(status().is3xxRedirection()) HttpSession session = this.mvc.perform(get("http://localhost:8080/")).andExpect(status().is3xxRedirection())
.andExpect(redirectedUrl("http://localhost:8080/login")).andReturn().getRequest() .andExpect(redirectedUrl("http://localhost:8080/login")).andReturn().getRequest().getSession();
.getSession();
this.mvc.perform(post("http://localhost:8080/login/saml2/sso/one").param("SAMLResponse", SIGNED_RESPONSE) this.mvc.perform(post("http://localhost:8080/login/saml2/sso/one").param("SAMLResponse", SIGNED_RESPONSE)
.session((MockHttpSession) session)).andExpect(redirectedUrl("http://localhost:8080/")); .session((MockHttpSession) session)).andExpect(redirectedUrl("http://localhost:8080/"));