Skip to content

Commit 00a4426

Browse files
author
Nicolo
committed
#80 Fix JUnit to expect a logout response url to be present
1 parent 0146ad2 commit 00a4426

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

toolkit/src/test/java/com/onelogin/saml2/test/AuthTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ public void testProcessSLORequestSignRes() throws Exception {
544544
assertFalse(auth.isAuthenticated());
545545
assertTrue(auth.getErrors().isEmpty());
546546
auth.processSLO();
547-
verify(response).sendRedirect(matches("http:\\/\\/idp.example.com\\/simplesaml\\/saml2\\/idp\\/SingleLogoutService.php\\?SAMLResponse=(.)*&RelayState=http%3A%2F%2Flocalhost%3A8080%2Fexpected.jsp&SigAlg=http%3A%2F%2Fwww.w3.org%2F2001%2F04%2Fxmldsig-more%23rsa-sha512&Signature=(.)*"));
547+
verify(response).sendRedirect(matches("http:\\/\\/idp.example.com\\/simplesaml\\/saml2\\/idp\\/SingleLogoutServiceResponse.php\\?SAMLResponse=(.)*&RelayState=http%3A%2F%2Flocalhost%3A8080%2Fexpected.jsp&SigAlg=http%3A%2F%2Fwww.w3.org%2F2001%2F04%2Fxmldsig-more%23rsa-sha512&Signature=(.)*"));
548548
verify(session, times(1)).invalidate();
549549
assertTrue(auth.getErrors().isEmpty());
550550
}

0 commit comments

Comments
 (0)