Repository: wicket Updated Branches: refs/heads/master 6c40c919f -> dbfe3461e refs/heads/wicket-6.x 332082134 -> 89a2aac8c refs/heads/wicket-7.x 5c345567c -> f2c165cf9
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/f2c165cf Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/f2c165cf Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/f2c165cf Branch: refs/heads/wicket-7.x Commit: f2c165cf994f60753016459ce0d94b3787f6727c Parents: 5c34556 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:32 2016 +0200 ---------------------------------------------------------------------- .../protocol/http/CsrfPreventionRequestCycleListenerTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/f2c165cf/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 */