Skip to content

Commit 4ebc53a

Browse files
committed
Merge branch '5.3.x'
2 parents 1941ae6 + 2a80b64 commit 4ebc53a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

spring-aop/src/testFixtures/java/org/springframework/aop/testfixture/advice/MethodCounter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-core/src/test/java/org/springframework/util/StringUtilsTests.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -155,6 +155,14 @@ void trimTrailingCharacter() {
155155
assertThat(StringUtils.trimTrailingCharacter(" a b c ", ' ')).isEqualTo(" a b c");
156156
}
157157

158+
@Test
159+
void matchesCharacter() {
160+
assertThat(StringUtils.matchesCharacter(null, '/')).isFalse();
161+
assertThat(StringUtils.matchesCharacter("/a", '/')).isFalse();
162+
assertThat(StringUtils.matchesCharacter("a", '/')).isFalse();
163+
assertThat(StringUtils.matchesCharacter("/", '/')).isTrue();
164+
}
165+
158166
@Test
159167
void startsWithIgnoreCase() {
160168
String prefix = "fOo";

0 commit comments

Comments
 (0)