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