Describe the bug
The aio JAR CTL does not work when acceptMediaType application/zip is used.
Media types application/xml and application/rdf+xml can be successfully used.
The stack trace displayed in the log:
...
Nov 08, 2023 6:53:58 PM com.occamlab.te.spi.util.HtmlReport earlHtmlReport
SCHWERWIEGEND: Transformation of EARL to HTML failed.
java.io.FileNotFoundException: Source 'file:/home/stenger/git/ets-wfs20/target/ets-wfs20-1.41-SNAPSHOT-aio.jar!/com/occamlab/te/earl/lib' does not exist
at org.apache.commons.io.FileUtils.checkFileRequirements(FileUtils.java:274)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:657)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:553)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:519)
at com.occamlab.te.util.Utils.copyResourceDir(Utils.java:249)
at com.occamlab.te.spi.util.HtmlReport.earlHtmlReport(HtmlReport.java:112)
at com.occamlab.te.spi.util.HtmlReport.getHtmlResultZip(HtmlReport.java:69)
at com.occamlab.te.spi.executors.testng.TestNGExecutor.getResultsFile(TestNGExecutor.java:221)
at com.occamlab.te.spi.executors.testng.TestNGExecutor.execute(TestNGExecutor.java:189)
at org.opengis.cite.iso19142.TestNGController.doTestRun(TestNGController.java:142)
at org.opengis.cite.iso19142.TestNGController.main(TestNGController.java:82)
Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: Source 'file:/home/stenger/git/ets-wfs20/target/ets-wfs20-1.41-SNAPSHOT-aio.jar!/com/occamlab/te/earl/lib' does not exist
at com.occamlab.te.spi.util.HtmlReport.earlHtmlReport(HtmlReport.java:115)
at com.occamlab.te.spi.util.HtmlReport.getHtmlResultZip(HtmlReport.java:69)
at com.occamlab.te.spi.executors.testng.TestNGExecutor.getResultsFile(TestNGExecutor.java:221)
at com.occamlab.te.spi.executors.testng.TestNGExecutor.execute(TestNGExecutor.java:189)
at org.opengis.cite.iso19142.TestNGController.doTestRun(TestNGController.java:142)
at org.opengis.cite.iso19142.TestNGController.main(TestNGController.java:82)
Caused by: java.io.FileNotFoundException: Source 'file:/home/stenger/git/ets-wfs20/target/ets-wfs20-1.41-SNAPSHOT-aio.jar!/com/occamlab/te/earl/lib' does not exist
at org.apache.commons.io.FileUtils.checkFileRequirements(FileUtils.java:274)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:657)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:553)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:519)
at com.occamlab.te.util.Utils.copyResourceDir(Utils.java:249)
at com.occamlab.te.spi.util.HtmlReport.earlHtmlReport(HtmlReport.java:112)
... 5 more
Describe the bug The aio JAR CTL does not work when acceptMediaType application/zip is used. Media types application/xml and application/rdf+xml can be successfully used.
The stack trace displayed in the log:
To Reproduce Steps to reproduce the behavior:
java -jar ets-wfs20-1.41-SNAPSHOT-aio.jar ../src/main/resources/test-run-props.xml
acceptMediaType
is set toapplication/xml
orapplication/rdf+xml
, the error does not occur.Expected behavior All three media types, application/zip, application/xml and application/rdf+xml shall be usable with the aio JAR CLI.