WICKET-6245: fix testcase to reflect change in behavior: no origin is blocked


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/dbfe3461
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/dbfe3461
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/dbfe3461

Branch: refs/heads/master
Commit: dbfe3461e5caa4c6d9f2d65b248a1a3e42946d0b
Parents: 6c40c91
Author: Emond Papegaaij <emond.papega...@topicus.nl>
Authored: Mon Sep 19 15:38:32 2016 +0200
Committer: Emond Papegaaij <emond.papega...@topicus.nl>
Committed: Mon Sep 19 15:38:44 2016 +0200

----------------------------------------------------------------------
 .../protocol/http/CsrfPreventionRequestCycleListenerTest.java   | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/dbfe3461/wicket-core/src/test/java/org/apache/wicket/protocol/http/CsrfPreventionRequestCycleListenerTest.java
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/test/java/org/apache/wicket/protocol/http/CsrfPreventionRequestCycleListenerTest.java
 
b/wicket-core/src/test/java/org/apache/wicket/protocol/http/CsrfPreventionRequestCycleListenerTest.java
index beef761..3db62ab 100644
--- 
a/wicket-core/src/test/java/org/apache/wicket/protocol/http/CsrfPreventionRequestCycleListenerTest.java
+++ 
b/wicket-core/src/test/java/org/apache/wicket/protocol/http/CsrfPreventionRequestCycleListenerTest.java
@@ -78,13 +78,12 @@ public class CsrfPreventionRequestCycleListenerTest extends 
WicketTestCase
                tester.assertRenderedPage(SecondPage.class);
        }
 
-       /** Tests the default setting of allowing a missing Origin. */
+       /** Tests the default setting of aborting a missing Origin. */
        @Test
        public void withoutOriginAllowed()
        {
                tester.clickLink("link");
-               assertConflictingOriginsRequestAllowed();
-               tester.assertRenderedPage(SecondPage.class);
+               assertConflictingOriginsRequestAborted();
        }
 
        /** Tests the alternative action of suppressing a request without 
Origin header */

Reply via email to