File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
spring-aop/src/testFixtures/java/org/springframework/aop/testfixture/advice
spring-core/src/test/java/org/springframework/util Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2020 the original author or authors.
2
+ * Copyright 2002-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2021 the original author or authors.
2
+ * Copyright 2002-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -155,6 +155,14 @@ void trimTrailingCharacter() {
155
155
assertThat (StringUtils .trimTrailingCharacter (" a b c " , ' ' )).isEqualTo (" a b c" );
156
156
}
157
157
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
+
158
166
@ Test
159
167
void startsWithIgnoreCase () {
160
168
String prefix = "fOo" ;
You can’t perform that action at this time.
0 commit comments