-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): JSON-LD Unit tests fail on Windows (#3670)
Fix JSON-LD unit tests failure on Windows (#3408) Fixes comparison of cached file names on Windows machines as described by Barium. In the unit tests for JsonLdExtension the URI is asserted against the value: "file:/tmp/foo/doc.json" but on Windows the value will include the drive name such as: "file:/C:/tmp/foo/doc.json". The suggested solution of replacing for example assertThat(cache).containsEntry("http://foo.org/doc.json", new URI("file:/tmp/foo/doc.json")); with assertThat(cache).containsEntry("http://foo.org/doc.json", new File("/tmp/foo/doc.json").toURI()); was implmeented and verified on windows machine
- Loading branch information
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters