Skip to content

Commit

Permalink
Update assert message
Browse files Browse the repository at this point in the history
  • Loading branch information
solth committed May 2, 2023
1 parent 828c59c commit 9dd076d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ public void shouldSkipRenamingDirectory() throws Exception {
URI resource = fileManagement.create(URI.create(""), directoryName, false);
assumeTrue(fileManagement.isDirectory(resource));
URI expectedUri = new File(KitodoConfig.getKitodoDataDirectory() + resource).toURI();
assertEquals("Renaming directory to the identical name should return null", expectedUri,
assertEquals("Renaming directory to the identical name should return identical URI", expectedUri,
fileManagement.rename(resource, directoryName));
String directoryWithTrailingSlash = directoryName + "/";
assertEquals("Renaming directory to the identical name with trailing slash should return null", expectedUri,
fileManagement.rename(resource, directoryWithTrailingSlash));
assertEquals("Renaming directory to the identical name with trailing slash should return identical URI",
expectedUri, fileManagement.rename(resource, directoryWithTrailingSlash));
fileManagement.delete(resource);
}

Expand Down

0 comments on commit 9dd076d

Please sign in to comment.