Fix tests.
This commit is contained in:
@@ -29,6 +29,7 @@ package com.wisemapping.model;
|
||||
|
||||
import com.wisemapping.util.ZipUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Calendar;
|
||||
@@ -189,7 +190,7 @@ public class MindMap {
|
||||
return xml;
|
||||
}
|
||||
|
||||
public void setNativeXml(String nativeXml)
|
||||
public void setNativeXml(@NotNull String nativeXml)
|
||||
throws IOException {
|
||||
this.xml = ZipUtils.stringToZip(nativeXml);
|
||||
}
|
||||
|
@@ -18,7 +18,7 @@
|
||||
|
||||
package com.wisemapping.model;
|
||||
|
||||
public class MindmapIcon {
|
||||
public class MindmapIcon implements Comparable{
|
||||
private String name;
|
||||
private IconFamily family;
|
||||
|
||||
@@ -38,4 +38,8 @@ public class MindmapIcon {
|
||||
public String getId() {
|
||||
return family.name().toLowerCase() + "_" + name;
|
||||
}
|
||||
|
||||
public int compareTo(Object o) {
|
||||
return ((MindmapIcon)o).getId().compareTo(this.getId());
|
||||
}
|
||||
}
|
||||
|
@@ -203,7 +203,7 @@ public class MindmapIcons {
|
||||
private static void load() {
|
||||
try {
|
||||
if (iconsByFamily == null) {
|
||||
iconsByFamily = new HashMap<IconFamily, List<MindmapIcon>>();
|
||||
iconsByFamily = new TreeMap<IconFamily, List<MindmapIcon>>();
|
||||
|
||||
Field[] fields = MindmapIcons.class.getDeclaredFields();
|
||||
for (Field field : fields) {
|
||||
|
Reference in New Issue
Block a user