File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
spring-core/src/test/java/org/springframework/util Expand file tree Collapse file tree 1 file changed +9
-1
lines changed 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.
@@ -152,6 +152,14 @@ void trimTrailingCharacter() {
152
152
assertThat (StringUtils .trimTrailingCharacter (" a b c " , ' ' )).isEqualTo (" a b c" );
153
153
}
154
154
155
+ @ Test
156
+ void matchesCharacter () {
157
+ assertThat (StringUtils .matchesCharacter (null , '/' )).isFalse ();
158
+ assertThat (StringUtils .matchesCharacter ("/a" , '/' )).isFalse ();
159
+ assertThat (StringUtils .matchesCharacter ("a" , '/' )).isFalse ();
160
+ assertThat (StringUtils .matchesCharacter ("/" , '/' )).isTrue ();
161
+ }
162
+
155
163
@ Test
156
164
void startsWithIgnoreCase () {
157
165
String prefix = "fOo" ;
You can’t perform that action at this time.
0 commit comments