From f9f696f295b6aa07660cca57d35edc244b49b0c2 Mon Sep 17 00:00:00 2001 From: Balduin Landolt <33053745+BalduinLandolt@users.noreply.github.com> Date: Mon, 18 Mar 2024 17:58:11 +0100 Subject: [PATCH] don't persist RDF XML --- .../org/knora/webapi/e2e/v2/OntologyFormatsE2ESpec.scala | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/integration/src/test/scala/org/knora/webapi/e2e/v2/OntologyFormatsE2ESpec.scala b/integration/src/test/scala/org/knora/webapi/e2e/v2/OntologyFormatsE2ESpec.scala index f117901112b..7834cf589fe 100644 --- a/integration/src/test/scala/org/knora/webapi/e2e/v2/OntologyFormatsE2ESpec.scala +++ b/integration/src/test/scala/org/knora/webapi/e2e/v2/OntologyFormatsE2ESpec.scala @@ -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) = {