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