Skip to content

Commit

Permalink
validation check fix in shouldReturnClientErrorWhenRequestingRetransm…
Browse files Browse the repository at this point in the history
…issionWithEmptyData test
  • Loading branch information
adamizydorczyk-allegro committed Jul 30, 2024
1 parent 181b183 commit dfda566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@Target({TYPE})
@Constraint(validatedBy = OneSourceRetransmissionValidator.class)
public @interface OneSourceRetransmission {
String message() default "Only one source of retransmission data is allowed - source topic or source view";
String message() default "must contain one defined source of retransmission data - source topic or source view";

Class[] groups() default {};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ public void shouldReturnClientErrorWhenRequestingRetransmissionWithEmptyData() {
response.expectStatus().isBadRequest();
assertThat(response.expectBody(String.class).returnResult().getResponseBody()).contains(
List.of(
"sourceTopic must not be empty",
"targetTopic must not be empty",
"must contain one defined source of retransmission data - source topic or source view",
"startTimestamp must not be null",
"endTimestamp must not be null")
);
Expand Down

0 comments on commit dfda566

Please sign in to comment.