From 32b27baecae75058e94d8de3ddd6679c440d1a84 Mon Sep 17 00:00:00 2001 From: Pedro Santos Date: Mon, 28 Oct 2024 13:15:49 -0300 Subject: [PATCH] WICKET-7024 test legibility improvement --- .../core/request/resource/PackageResourceReferenceTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wicket-core-tests/src/test/java/org/apache/wicket/core/request/resource/PackageResourceReferenceTest.java b/wicket-core-tests/src/test/java/org/apache/wicket/core/request/resource/PackageResourceReferenceTest.java index 14a1b2a205..657423f877 100644 --- a/wicket-core-tests/src/test/java/org/apache/wicket/core/request/resource/PackageResourceReferenceTest.java +++ b/wicket-core-tests/src/test/java/org/apache/wicket/core/request/resource/PackageResourceReferenceTest.java @@ -432,6 +432,7 @@ public void decodeStyleFromUrl() "wicket/resource/org.apache.wicket.core.request.resource.PackageResourceReferenceTest/a.css?-orange"); assertThat(tester.getLastResponseAsString(), containsString("orange")); + assertThat(tester.getLastResponseAsString(), not(containsString("blue"))); } /** @@ -445,7 +446,7 @@ public void notDecodeStyleFromUrl() TestPage page = (TestPage)tester.getLastRenderedPage(); - assertThat(page.resource.getStyle(), is(not("1.0"))); + assertThat(page.resource.getStyle(), not(is("1.0"))); } public static class TestPage extends WebPage implements IMarkupResourceStreamProvider