File tree 2 files changed +12
-12
lines changed
main/java/org/springframework/web/util
test/java/org/springframework/web/util
2 files changed +12
-12
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-2024 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-2022 the original author or authors.
2
+ * Copyright 2002-2024 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.
36
36
*/
37
37
class UriTemplateTests {
38
38
39
+ @ Test
40
+ void emptyPathDoesNotThrowException () {
41
+ assertThatNoException ().isThrownBy (() -> new UriTemplate ("" ));
42
+ }
43
+
44
+ @ Test
45
+ void nullPathThrowsException () {
46
+ assertThatIllegalArgumentException ().isThrownBy (() -> new UriTemplate (null ));
47
+ }
48
+
39
49
@ Test
40
50
void getVariableNames () {
41
51
UriTemplate template = new UriTemplate ("/hotels/{hotel}/bookings/{booking}" );
@@ -219,14 +229,4 @@ void expandWithAtSign() {
219
229
assertThat (uri .toString ()).isEqualTo ("http://localhost/query=foo@bar" );
220
230
}
221
231
222
- @ Test
223
- void emptyPathDoesNotThrowException () {
224
- assertThatNoException ().isThrownBy (() -> new UriTemplate ("" ));
225
- }
226
-
227
- @ Test
228
- void emptyPathThrowsException () {
229
- assertThatIllegalArgumentException ().isThrownBy (() -> new UriTemplate (null ));
230
- }
231
-
232
232
}
You can’t perform that action at this time.
0 commit comments