Skip to content

Commit

Permalink
Fixing Sonar issue in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sashir Estela committed Mar 27, 2024
1 parent 1ecc856 commit 7c82c02
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ void shouldThrownExceptionWhenBodyInspectorFails() {
.bodyInspector(bodyInspector)
.build();
var testService = cleverClient.create(TestCleverClient.class);
assertThrows(IllegalArgumentException.class,
() -> testService.getText(Sample.builder().build(), "math"));
var sample = Sample.builder().id("1").build();
assertThrows(IllegalArgumentException.class, () -> testService.getText(sample, "math"));
}

@Value
Expand Down

0 comments on commit 7c82c02

Please sign in to comment.