This is an automated email from the ASF dual-hosted git repository. lprimak pushed a commit to branch 3.x in repository https://gitbox.apache.org/repos/asf/shiro.git
commit 6735e8a55ba549d2c70309b682086f62997f40ba Author: lprimak <[email protected]> AuthorDate: Sat Jan 31 14:27:24 2026 -0600 fixed failing tests --- .../src/test/java/org/apache/shiro/util/AntPathMatcherTests.java | 9 ++++----- src/suppressions.xml | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/test/java/org/apache/shiro/util/AntPathMatcherTests.java b/core/src/test/java/org/apache/shiro/util/AntPathMatcherTests.java index 8eeb2c769..beae50617 100644 --- a/core/src/test/java/org/apache/shiro/util/AntPathMatcherTests.java +++ b/core/src/test/java/org/apache/shiro/util/AntPathMatcherTests.java @@ -23,7 +23,6 @@ import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; -@SuppressWarnings("checkstyle:LineLength") /** * Unit tests for {@link AntPathMatcher}. * <p> @@ -31,7 +30,7 @@ import static org.assertj.core.api.Assertions.assertThat; * <a href="https://github.com/spring-projects/spring-framework/blob/b92d249f450920e48e640af6bbd0bd509e7d707d/spring-core/src/test/java/org/springframework/util/AntPathMatcherTests.java"/> * Spring Framework's similar AntPathMatcherTests</a> */ -public class AntPathMatcherTests { +class AntPathMatcherTests { private final AntPathMatcher pathMatcher = new AntPathMatcher(); @@ -352,8 +351,8 @@ public class AntPathMatcherTests { @Test void caseInsensitiveMatch() { pathMatcher.setCaseInsensitive(true); - assertTrue(pathMatcher.match("/Test/Path", "/test/path")); - assertTrue(pathMatcher.match("/TEST/PATH/*", "/test/path/extra")); - assertFalse(pathMatcher.match("/TEST/PATH", "/different/path")); + assertThat(pathMatcher.match("/Test/Path", "/test/path")).isTrue(); + assertThat(pathMatcher.match("/TEST/PATH/*", "/test/path/extra")).isTrue(); + assertThat(pathMatcher.match("/TEST/PATH", "/different/path")).isFalse(); } } diff --git a/src/suppressions.xml b/src/suppressions.xml index 7eca7bad0..64f327625 100644 --- a/src/suppressions.xml +++ b/src/suppressions.xml @@ -40,4 +40,5 @@ <suppress checks=".*" files="Quickstart.*.java"/> <suppress checks=".*" files="application.properties"/> <suppress checks="LineLength" lines="45" files="org.apache.shiro.web.filter.InvalidRequestFilter"/> + <suppress checks="LineLength" lines="30" files="org.apache.shiro.util.AntPathMatcherTests"/> </suppressions>
