diff --git a/wise-webapp/pom.xml b/wise-webapp/pom.xml
index b4845eea..700422b0 100644
--- a/wise-webapp/pom.xml
+++ b/wise-webapp/pom.xml
@@ -34,6 +34,12 @@
3.0-SNAPSHOT
provided
+
+ org.wisemapping
+ wise-editor
+ 3.0-SNAPSHOT
+ provided
+
org.wisemapping
mindplot
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 fd1e27f3..49826b79 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
@@ -32,7 +32,7 @@ public class ExportTest {
reader = new BufferedReader(new FileReader(svgFile));
String text;
- while((text=reader.readLine()) != null){
+ while ((text = reader.readLine()) != null) {
buffer.append(text).append(System.getProperty("line.separator"));
}
@@ -42,11 +42,11 @@ public class ExportTest {
final ExportProperties properties = ExportProperties.create(format);
final ExportProperties.ImageProperties imageProperties = (ExportProperties.ImageProperties) properties;
imageProperties.setSize(ExportProperties.ImageProperties.Size.LARGE);
- String baseUrl = "file://"+svgFile.getParentFile().getAbsolutePath()+"/../../../main/webapp/icons";
+ String baseUrl = "file://" + svgFile.getParentFile().getAbsolutePath() + "/../../../../../wise-editor/src/main/webapp/icons";
properties.setBaseImagePath(baseUrl);
// Write content ...
- if(pngFile.exists()){
+ if (pngFile.exists()) {
// Export mile content ...
final ByteArrayOutputStream bos = new ByteArrayOutputStream();
ExporterFactory.export(imageProperties, null, bos, svgXml);
@@ -78,8 +78,7 @@ public class ExportTest {
Assert.assertEquals(expContent.toString().trim(), expContent.toString().trim());
- }
- else{
+ } else {
OutputStream outputStream = new FileOutputStream(pngFile, false);
ExporterFactory.export(imageProperties, null, outputStream, svgXml);
outputStream.close();
diff --git a/wise-webapp/src/test/java/com/wisemapping/test/model/IconsTest.java b/wise-webapp/src/test/java/com/wisemapping/test/model/IconsTest.java
index 6a44f355..941030bc 100644
--- a/wise-webapp/src/test/java/com/wisemapping/test/model/IconsTest.java
+++ b/wise-webapp/src/test/java/com/wisemapping/test/model/IconsTest.java
@@ -29,7 +29,7 @@ public class IconsTest {
final List iconByFamily = MindmapIcons.getIconByFamily(family);
for (MindmapIcon mindmapIcon : iconByFamily) {
final String pngName = mindmapIcon.getId() + ".png";
- final File file = new File("src/main/webapp/icons/", pngName);
+ final File file = new File("../wise-editor/src/main/webapp/icons/", pngName);
Assert.assertTrue(file.exists(), "Could not be found:" + file.getAbsolutePath());
}