Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/test/java/org/spdx/tools/LatestSchemaVersionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public void testLatestSpdxSchemaVersionIsUpToDate() throws IOException {
String version = extractVersionNumber(fileName);

// Step 2: Compare the content of the file with the content from the URL
String localSchemaContent = Files.readString(schemaFilePath);
String localSchemaContent = Files.readString(schemaFilePath).replaceAll("\\s+", " ");
String remoteSchemaUrl = "https://spdx.org/schema/" + version + "/spdx-json-schema.json";
String remoteSchemaContent = IOUtils.toString(URI.create(remoteSchemaUrl).toURL(), "UTF-8");
String remoteSchemaContent = IOUtils.toString(URI.create(remoteSchemaUrl).toURL(), "UTF-8").replaceAll("\\s+", " ");
assertEquals("The local SPDX schema file does not match the remote schema content.",
localSchemaContent.trim(), remoteSchemaContent.trim());
}
Expand Down