Skip to content

Commit

Permalink
don't persist RDF XML
Browse files Browse the repository at this point in the history
  • Loading branch information
BalduinLandolt committed Mar 18, 2024
1 parent 68e6e71 commit f9f696f
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,8 @@ class OntologyFormatsE2ESpec extends E2ESpec {
private def checkRdfXmlTestCase(httpGetTest: HttpGetTest) = {
val mediaType = RdfMediaTypes.`application/rdf+xml`
val responseStr = getResponse(httpGetTest.urlPath, mediaType)
if (writeTestDataFiles) {
val parsedResponse: RdfModel = parseRdfXml(responseStr)
val parsedExistingFile: RdfModel = parseRdfXml(httpGetTest.readFile(mediaType))
if (parsedResponse != parsedExistingFile) httpGetTest.writeFile(responseStr, mediaType)
} else assert(parseRdfXml(responseStr) == parseRdfXml(httpGetTest.readFile(mediaType)))
if (writeTestDataFiles) ()
else assert(parseRdfXml(responseStr) == parseTurtle(httpGetTest.readFile(RdfMediaTypes.`text/turtle`)))
}

private def getResponse(url: String, mediaType: MediaType.NonBinary) = {
Expand Down

0 comments on commit f9f696f

Please sign in to comment.