Add mindmap list test.

This commit is contained in:
Paulo Gustavo Veiga
2012-03-15 00:29:22 -03:00
parent 6a1484b49d
commit b52da56739
3 changed files with 59 additions and 29 deletions

View File

@@ -5,6 +5,7 @@ import com.wisemapping.model.MindMap;
import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.jetbrains.annotations.NotNull;
import org.springframework.util.CollectionUtils;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@@ -12,6 +13,7 @@ import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@XmlRootElement(name = "maps")
@@ -25,7 +27,7 @@ public class RestMindmapList {
private List<RestMindmap> mindmaps;
public RestMindmapList() {
this(null);
this(Collections.<MindMap>emptyList());
}
public RestMindmapList(@NotNull List<MindMap> mindmaps) {