From f58703767a58d0d0b40ccb9237f874cc192283b5 Mon Sep 17 00:00:00 2001 From: jstaerk Date: Thu, 5 Jun 2025 14:31:54 +0200 Subject: [PATCH] removing debug code --- .../ZUGFeRD/VisualizationTest.java | 28 +------------------ 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/library/src/test/java/org/mustangproject/ZUGFeRD/VisualizationTest.java b/library/src/test/java/org/mustangproject/ZUGFeRD/VisualizationTest.java index e705594e..db772ff1 100644 --- a/library/src/test/java/org/mustangproject/ZUGFeRD/VisualizationTest.java +++ b/library/src/test/java/org/mustangproject/ZUGFeRD/VisualizationTest.java @@ -49,24 +49,6 @@ public class VisualizationTest extends ResourceCase { this.runZUGFeRDVisualization("factur-x-extended.xml", "factur-x-vis-extended.de.html", Language.DE); } - public void testCIIVisualizationExtended2() { - - - ZUGFeRDVisualizer zvi = new ZUGFeRDVisualizer(); - String result = null; - try { - result = zvi.visualize("C:\\Users\\jstaerk\\Desktop\\test.txt", Language.DE); - Files.write(Paths.get("c:\\Users\\jstaerk\\temp\\res.html"), result.getBytes(StandardCharsets.UTF_8)); - } catch (IOException e) { - throw new RuntimeException(e); - } catch (TransformerException e) { - throw new RuntimeException(e); - } catch (ParserConfigurationException e) { - throw new RuntimeException(e); - } - - } - public void testUBLCreditNoteVisualizationBasic() { this.runZUGFeRDVisualization("ubl-creditnote.xml", "factur-x-vis-ubl-creditnote.en.html", Language.EN); } @@ -100,15 +82,7 @@ public class VisualizationTest extends ResourceCase { } catch (ParserConfigurationException e) { fail("ParserConfigurationException should not happen: " + e.getMessage()); } - - SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy-HH_mm_ss"); - try { - String datePart=formatter.format(new Date()); - Files.write( Paths.get("c:\\Users\\jstaerk\\temp\\res"+datePart+".txt"), result.getBytes()); - Files.write( Paths.get("c:\\Users\\jstaerk\\temp\\exp"+datePart+".txt"), expected.getBytes()); - } catch (IOException e) { - throw new RuntimeException(e); - } + assertNotNull(result); /* remove file endings so that tests can also pass after checking out from git with arbitrary options (which may include CSRF changes)