|
1 | 1 | /* |
2 | | - * Copyright 2013-2024 the original author or authors. |
| 2 | + * Copyright 2013-2025 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. |
|
68 | 68 | import static feign.CollectionFormat.CSV; |
69 | 69 | import static feign.CollectionFormat.SSV; |
70 | 70 | import static org.assertj.core.api.Assertions.assertThat; |
| 71 | +import static org.assertj.core.api.Assertions.assertThatCode; |
71 | 72 | import static org.assertj.core.api.Assertions.assertThatExceptionOfType; |
72 | 73 | import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException; |
73 | 74 | import static org.junit.jupiter.api.Assumptions.assumeTrue; |
@@ -509,11 +510,11 @@ void testProcessAnnotations_ParseParams_MultipleParamsWithoutValue() throws Exce |
509 | 510 | } |
510 | 511 |
|
511 | 512 | @Test |
512 | | - void testProcessAnnotations_ParseParams_NotEqualParams() throws Exception { |
513 | | - assertThatIllegalArgumentException().isThrownBy(() -> { |
514 | | - Method method = TestTemplate_ParseParams.class.getDeclaredMethod("notEqualParams"); |
| 513 | + void testProcessAnnotations_ParseParams_NegatedParams() { |
| 514 | + assertThatCode(() -> { |
| 515 | + Method method = TestTemplate_ParseParams.class.getDeclaredMethod("negatedParams"); |
515 | 516 | contract.parseAndValidateMetadata(method.getDeclaringClass(), method); |
516 | | - }); |
| 517 | + }).doesNotThrowAnyException(); |
517 | 518 | } |
518 | 519 |
|
519 | 520 | @Test |
@@ -831,7 +832,7 @@ public interface TestTemplate_ParseParams { |
831 | 832 | ResponseEntity<TestObject> mixParams(); |
832 | 833 |
|
833 | 834 | @GetMapping(value = "test", params = { "p1!=1" }) |
834 | | - ResponseEntity<TestObject> notEqualParams(); |
| 835 | + ResponseEntity<TestObject> negatedParams(); |
835 | 836 |
|
836 | 837 | @GetMapping(value = "test", params = { "p1=1" }) |
837 | 838 | ResponseEntity<TestObject> paramsAndRequestParam(@RequestParam("p2") String p2); |
|
0 commit comments