You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by pa...@apache.org on 2016/09/19 13:39:05 UTC
[3/3] wicket git commit: WICKET-6245: fix testcase to reflect change
in behavior: no origin is blocked
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/89a2aac8
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/89a2aac8
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/89a2aac8
Branch: refs/heads/wicket-6.x
Commit: 89a2aac8c6851ee03ada2ab0c71e8675d31e39d9
Parents: 3320821
Author: Emond Papegaaij <em...@topicus.nl>
Authored: Mon Sep 19 15:38:32 2016 +0200
Committer: Emond Papegaaij <em...@topicus.nl>
Committed: Mon Sep 19 15:38:49 2016 +0200
----------------------------------------------------------------------
.../protocol/http/CsrfPreventionRequestCycleListenerTest.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/89a2aac8/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 4dca4b8..4448175 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 */