From f673e84df3ba7cf52e3901eb413e3c870639dd17 Mon Sep 17 00:00:00 2001 From: Egon Willighagen Date: Sun, 17 Dec 2023 10:56:44 +0100 Subject: [PATCH] Updated for the java.util.Base64 use --- src/test/java/org/xmlcml/graphics/svg/SVGImageTest.java | 4 ++-- .../org/xmlcml/graphics/svg/image/ImageConverterTest.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/xmlcml/graphics/svg/SVGImageTest.java b/src/test/java/org/xmlcml/graphics/svg/SVGImageTest.java index 57100d8..237d136 100755 --- a/src/test/java/org/xmlcml/graphics/svg/SVGImageTest.java +++ b/src/test/java/org/xmlcml/graphics/svg/SVGImageTest.java @@ -59,8 +59,8 @@ public void testRoundtripImage() throws Exception { Assert.assertNotNull("image", svgImage1); svgImage.format(3); // - - Assert.assertEquals("image", "", + + Assert.assertEquals("image", "", svgImage1.toXML()); } diff --git a/src/test/java/org/xmlcml/graphics/svg/image/ImageConverterTest.java b/src/test/java/org/xmlcml/graphics/svg/image/ImageConverterTest.java index b4f663b..b1d0480 100755 --- a/src/test/java/org/xmlcml/graphics/svg/image/ImageConverterTest.java +++ b/src/test/java/org/xmlcml/graphics/svg/image/ImageConverterTest.java @@ -61,9 +61,8 @@ public void testCreateImageFromHref() throws IOException { imageFilenameList.get(0)); // check file has been written SVGElement svgElement = SVGImage.createSVGFromImage(new File(imageFilenameList.get(0)), SVGImage.IMAGE_PNG); - Assert.assertEquals("image", "", + Assert.assertEquals("image", "", svgElement.toXML()); - } @Test