Skip to content

Commit

Permalink
Updated Dto's test
Browse files Browse the repository at this point in the history
  • Loading branch information
pasqualino.cristaudo committed Dec 4, 2023
1 parent dd1fe19 commit 947a9c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ void toStringTest() {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("class ");
stringBuilder.append(agreementEventDto.getClass().getSimpleName());
stringBuilder.append(" {\n");
stringBuilder.append(" eventId: ");
stringBuilder.append(" { ");
stringBuilder.append("eventId: ");
stringBuilder.append(agreementEventDto.getEventId());
stringBuilder.append("\n");
stringBuilder.append(" agreementId: ");
stringBuilder.append(", ");
stringBuilder.append("agreementId: ");
stringBuilder.append(agreementEventDto.getAgreementId());
stringBuilder.append("\n}");
stringBuilder.append(" }");

String toTest = stringBuilder.toString();
Assertions.assertEquals(toTest, agreementEventDto.toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ void toStringTest() {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("class ");
stringBuilder.append(eServiceEventDto.getClass().getSimpleName());
stringBuilder.append(" {\n");
stringBuilder.append(" eventId: ");
stringBuilder.append(" { ");
stringBuilder.append("eventId: ");
stringBuilder.append(eServiceEventDto.getEventId());
stringBuilder.append("\n");
stringBuilder.append(" eServiceId: ");
stringBuilder.append(", ");
stringBuilder.append("eServiceId: ");
stringBuilder.append(eServiceEventDto.getEServiceId());
stringBuilder.append("\n}");
stringBuilder.append(" }");

String toTest = stringBuilder.toString();
Assertions.assertEquals(toTest, eServiceEventDto.toString());
Expand Down

0 comments on commit 947a9c9

Please sign in to comment.