Skip to content

Commit

Permalink
Resolve request changes (#4)
Browse files Browse the repository at this point in the history
* test: enhanced RemoveLinksToNotExistentFilesTest

* test: add real content

* test: change structure

* test: added expectedChanges

* test: added a third test to RemoveLinksToNotExistentFilesTest

* refactor: removed unnecessary toString

* style: removed a whitespace

* refactor: checkstyle formatting.

formatted files according to checkstyle plugin.

* refactor: replaced .get(0) with .getFirst() for first accessing element of List.

Changed was required from ./gradlew rewriteDryRun

---------

Co-authored-by: burcukilic <[email protected]>
  • Loading branch information
karlsb and burcukilic authored Mar 4, 2024
1 parent 2ba3abd commit ecc7a90
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void deleteFileInMultipleLinkedEntry() {
fileBefore.toFile().delete();
List<FieldChange> changes = removeLinks.cleanup(entry);

assertEquals(expectedChange, changes.get(0));
assertEquals(expectedChange, changes.getFirst());
assertEquals(expectedEntry, entry);
}

Expand Down Expand Up @@ -159,7 +159,7 @@ void deleteLinkedFile() {
fileBefore.toFile().delete();
List<FieldChange> changes = removeLinks.cleanup(entry);

assertEquals(expectedChange, changes.get(0));
assertEquals(expectedChange, changes.getFirst());
assertEquals(expectedEntry, entry);
}
}

0 comments on commit ecc7a90

Please sign in to comment.