From bc50146f60cbfdfe8e672a004a87a5a8043d83ca Mon Sep 17 00:00:00 2001 From: Marcus Da Coregio Date: Mon, 11 Apr 2022 09:13:15 -0300 Subject: [PATCH] Fix tests in AntPathRequestMatcherTests Closes gh-11090 --- .../web/util/matcher/AntPathRequestMatcherTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/test/java/org/springframework/security/web/util/matcher/AntPathRequestMatcherTests.java b/web/src/test/java/org/springframework/security/web/util/matcher/AntPathRequestMatcherTests.java index aa5f1f697f..b90973257b 100644 --- a/web/src/test/java/org/springframework/security/web/util/matcher/AntPathRequestMatcherTests.java +++ b/web/src/test/java/org/springframework/security/web/util/matcher/AntPathRequestMatcherTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -93,10 +93,10 @@ public class AntPathRequestMatcherTests { AntPathRequestMatcher matcher = new AntPathRequestMatcher("/**/{id}"); assertThat(matcher.matches(createRequest("/blah/1234"))).isTrue(); assertThat(matcher.matches(createRequest("/bleh/4567"))).isTrue(); - assertThat(matcher.matches(createRequest("/paskos/blah/"))).isTrue(); + assertThat(matcher.matches(createRequest("/paskos/blah/"))).isFalse(); assertThat(matcher.matches(createRequest("/12345/blah/xxx"))).isTrue(); assertThat(matcher.matches(createRequest("/12345/blaha"))).isTrue(); - assertThat(matcher.matches(createRequest("/paskos/bleh/"))).isTrue(); + assertThat(matcher.matches(createRequest("/paskos/bleh/"))).isFalse(); } @Test