From e03f5f632bd02b60cd0cd840f77511748667c549 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 10 Mar 2013 19:55:40 -0300 Subject: [PATCH] Fix export unit tests. --- .../test/java/com/wisemapping/test/export/ExportTest.java | 8 +------- wise-webapp/src/test/resources/data/svg/bug-nbsp-exp.png | 0 wise-webapp/src/test/resources/data/svg/bug-nbsp-exp.svg | 2 +- wise-webapp/src/test/resources/data/svg/bug1-exp.png | 0 wise-webapp/src/test/resources/data/svg/bug1-exp.svg | 2 +- wise-webapp/src/test/resources/data/svg/bug2-exp.png | 0 wise-webapp/src/test/resources/data/svg/bug3-exp.png | 0 wise-webapp/src/test/resources/data/svg/bug3-exp.svg | 2 +- wise-webapp/src/test/resources/data/svg/map-3.0-exp.png | 0 wise-webapp/src/test/resources/data/svg/map-3.0-exp.svg | 2 +- wise-webapp/src/test/resources/data/svg/map1-exp.png | 0 wise-webapp/src/test/resources/data/svg/map1-exp.svg | 2 +- wise-webapp/src/test/resources/data/svg/map2-exp.png | 0 wise-webapp/src/test/resources/data/svg/map2-exp.svg | 2 +- wise-webapp/src/test/resources/data/svg/map3-exp.png | 0 wise-webapp/src/test/resources/data/svg/map3-exp.svg | 2 +- wise-webapp/src/test/resources/data/svg/map4-exp.png | 0 wise-webapp/src/test/resources/data/svg/map4-exp.svg | 2 +- wise-webapp/src/test/resources/data/svg/map5-exp.png | 0 wise-webapp/src/test/resources/data/svg/map5-exp.svg | 2 +- wise-webapp/src/test/resources/data/svg/map6-exp.png | 0 wise-webapp/src/test/resources/data/svg/map6-exp.svg | 2 +- 22 files changed, 11 insertions(+), 17 deletions(-) delete mode 100644 wise-webapp/src/test/resources/data/svg/bug-nbsp-exp.png delete mode 100644 wise-webapp/src/test/resources/data/svg/bug1-exp.png delete mode 100644 wise-webapp/src/test/resources/data/svg/bug2-exp.png delete mode 100644 wise-webapp/src/test/resources/data/svg/bug3-exp.png delete mode 100644 wise-webapp/src/test/resources/data/svg/map-3.0-exp.png delete mode 100644 wise-webapp/src/test/resources/data/svg/map1-exp.png delete mode 100644 wise-webapp/src/test/resources/data/svg/map2-exp.png delete mode 100644 wise-webapp/src/test/resources/data/svg/map3-exp.png delete mode 100644 wise-webapp/src/test/resources/data/svg/map4-exp.png delete mode 100644 wise-webapp/src/test/resources/data/svg/map5-exp.png delete mode 100644 wise-webapp/src/test/resources/data/svg/map6-exp.png diff --git a/wise-webapp/src/test/java/com/wisemapping/test/export/ExportTest.java b/wise-webapp/src/test/java/com/wisemapping/test/export/ExportTest.java index 1fb266ea..9d7e1f7e 100644 --- a/wise-webapp/src/test/java/com/wisemapping/test/export/ExportTest.java +++ b/wise-webapp/src/test/java/com/wisemapping/test/export/ExportTest.java @@ -4,19 +4,13 @@ import com.wisemapping.exporter.ExportException; import com.wisemapping.exporter.ExportFormat; import com.wisemapping.exporter.ExportProperties; import com.wisemapping.exporter.ExporterFactory; -import com.wisemapping.importer.ImporterException; - import org.apache.batik.transcoder.TranscoderException; import org.apache.commons.io.FileUtils; import org.jetbrains.annotations.NotNull; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; -import org.xml.sax.SAXException; -import javax.xml.bind.JAXBException; import javax.xml.parsers.ParserConfigurationException; -import javax.xml.stream.XMLStreamException; -import javax.xml.transform.TransformerException; import java.io.*; @Test @@ -98,7 +92,7 @@ public class ExportTest { final File[] svgFile = dataDir.listFiles(new FilenameFilter() { public boolean accept(File dir, String name) { - return name.endsWith(".svg"); + return name.endsWith(".svg") && !name.contains( "-exp.svg"); } }); diff --git a/wise-webapp/src/test/resources/data/svg/bug-nbsp-exp.png b/wise-webapp/src/test/resources/data/svg/bug-nbsp-exp.png deleted file mode 100644 index e69de29b..00000000 diff --git a/wise-webapp/src/test/resources/data/svg/bug-nbsp-exp.svg b/wise-webapp/src/test/resources/data/svg/bug-nbsp-exp.svg index 648b34b5..a0e50f43 100644 --- a/wise-webapp/src/test/resources/data/svg/bug-nbsp-exp.svg +++ b/wise-webapp/src/test/resources/data/svg/bug-nbsp-exp.svg @@ -1,5 +1,5 @@ - + diff --git a/wise-webapp/src/test/resources/data/svg/bug1-exp.png b/wise-webapp/src/test/resources/data/svg/bug1-exp.png deleted file mode 100644 index e69de29b..00000000 diff --git a/wise-webapp/src/test/resources/data/svg/bug1-exp.svg b/wise-webapp/src/test/resources/data/svg/bug1-exp.svg index 0e8315f4..8ce2d310 100644 --- a/wise-webapp/src/test/resources/data/svg/bug1-exp.svg +++ b/wise-webapp/src/test/resources/data/svg/bug1-exp.svg @@ -1,5 +1,5 @@ - + diff --git a/wise-webapp/src/test/resources/data/svg/bug2-exp.png b/wise-webapp/src/test/resources/data/svg/bug2-exp.png deleted file mode 100644 index e69de29b..00000000 diff --git a/wise-webapp/src/test/resources/data/svg/bug3-exp.png b/wise-webapp/src/test/resources/data/svg/bug3-exp.png deleted file mode 100644 index e69de29b..00000000 diff --git a/wise-webapp/src/test/resources/data/svg/bug3-exp.svg b/wise-webapp/src/test/resources/data/svg/bug3-exp.svg index 32a25e4a..aaa3d425 100644 --- a/wise-webapp/src/test/resources/data/svg/bug3-exp.svg +++ b/wise-webapp/src/test/resources/data/svg/bug3-exp.svg @@ -1,5 +1,5 @@ - + diff --git a/wise-webapp/src/test/resources/data/svg/map-3.0-exp.png b/wise-webapp/src/test/resources/data/svg/map-3.0-exp.png deleted file mode 100644 index e69de29b..00000000 diff --git a/wise-webapp/src/test/resources/data/svg/map-3.0-exp.svg b/wise-webapp/src/test/resources/data/svg/map-3.0-exp.svg index 638b2ab7..04864e90 100644 --- a/wise-webapp/src/test/resources/data/svg/map-3.0-exp.svg +++ b/wise-webapp/src/test/resources/data/svg/map-3.0-exp.svg @@ -1,5 +1,5 @@ - + diff --git a/wise-webapp/src/test/resources/data/svg/map1-exp.png b/wise-webapp/src/test/resources/data/svg/map1-exp.png deleted file mode 100644 index e69de29b..00000000 diff --git a/wise-webapp/src/test/resources/data/svg/map1-exp.svg b/wise-webapp/src/test/resources/data/svg/map1-exp.svg index a399e0ea..b8202e2f 100644 --- a/wise-webapp/src/test/resources/data/svg/map1-exp.svg +++ b/wise-webapp/src/test/resources/data/svg/map1-exp.svg @@ -1,5 +1,5 @@ - + diff --git a/wise-webapp/src/test/resources/data/svg/map2-exp.png b/wise-webapp/src/test/resources/data/svg/map2-exp.png deleted file mode 100644 index e69de29b..00000000 diff --git a/wise-webapp/src/test/resources/data/svg/map2-exp.svg b/wise-webapp/src/test/resources/data/svg/map2-exp.svg index bcd40a6b..9d77b509 100644 --- a/wise-webapp/src/test/resources/data/svg/map2-exp.svg +++ b/wise-webapp/src/test/resources/data/svg/map2-exp.svg @@ -1,5 +1,5 @@ - + diff --git a/wise-webapp/src/test/resources/data/svg/map3-exp.png b/wise-webapp/src/test/resources/data/svg/map3-exp.png deleted file mode 100644 index e69de29b..00000000 diff --git a/wise-webapp/src/test/resources/data/svg/map3-exp.svg b/wise-webapp/src/test/resources/data/svg/map3-exp.svg index a9923f14..a78df387 100644 --- a/wise-webapp/src/test/resources/data/svg/map3-exp.svg +++ b/wise-webapp/src/test/resources/data/svg/map3-exp.svg @@ -1,5 +1,5 @@ - + diff --git a/wise-webapp/src/test/resources/data/svg/map4-exp.png b/wise-webapp/src/test/resources/data/svg/map4-exp.png deleted file mode 100644 index e69de29b..00000000 diff --git a/wise-webapp/src/test/resources/data/svg/map4-exp.svg b/wise-webapp/src/test/resources/data/svg/map4-exp.svg index 43905182..1d759bc3 100644 --- a/wise-webapp/src/test/resources/data/svg/map4-exp.svg +++ b/wise-webapp/src/test/resources/data/svg/map4-exp.svg @@ -1,5 +1,5 @@ - + diff --git a/wise-webapp/src/test/resources/data/svg/map5-exp.png b/wise-webapp/src/test/resources/data/svg/map5-exp.png deleted file mode 100644 index e69de29b..00000000 diff --git a/wise-webapp/src/test/resources/data/svg/map5-exp.svg b/wise-webapp/src/test/resources/data/svg/map5-exp.svg index 9456291f..bff86d45 100644 --- a/wise-webapp/src/test/resources/data/svg/map5-exp.svg +++ b/wise-webapp/src/test/resources/data/svg/map5-exp.svg @@ -1,5 +1,5 @@ - + diff --git a/wise-webapp/src/test/resources/data/svg/map6-exp.png b/wise-webapp/src/test/resources/data/svg/map6-exp.png deleted file mode 100644 index e69de29b..00000000 diff --git a/wise-webapp/src/test/resources/data/svg/map6-exp.svg b/wise-webapp/src/test/resources/data/svg/map6-exp.svg index dad6979d..13026a18 100644 --- a/wise-webapp/src/test/resources/data/svg/map6-exp.svg +++ b/wise-webapp/src/test/resources/data/svg/map6-exp.svg @@ -1,5 +1,5 @@ - +