Commit 8688ce28 authored by Piotr Gawron's avatar Piotr Gawron

reports provide more information

parent 31b1efc1
Pipeline #17935 passed with stage
in 33 minutes and 39 seconds
......@@ -9,6 +9,7 @@ import org.junit.Test;
import lcsb.mapviewer.common.Pair;
import lcsb.mapviewer.model.Project;
import lcsb.mapviewer.model.graphics.PolylineData;
import lcsb.mapviewer.model.map.model.Model;
import lcsb.mapviewer.model.map.model.ModelFullIndexed;
import lcsb.mapviewer.model.map.reaction.Reaction;
......@@ -24,6 +25,7 @@ public class ObjectValidatorTest extends PersistTestFunctions {
public void testGetValidationSubjectForSpeciesIssue() throws Exception {
Protein protein = new GenericProtein("id");
protein.setFontSize((Double) null);
protein.setZ(1);
Project project = new Project("proj");
Model model = new ModelFullIndexed(null);
......@@ -38,7 +40,7 @@ public class ObjectValidatorTest extends PersistTestFunctions {
@Test
public void testGetValidationSubjectForReactionIssue() throws Exception {
Reaction reaction = new TransportReaction("id");
reaction.setLine(null);
reaction.setLine(new PolylineData());
List<Pair<Object, String>> issues = objectValidator.getValidationIssues(reaction);
assertEquals(1, issues.size());
assertEquals(reaction, issues.get(0).getLeft());
......@@ -48,7 +50,7 @@ public class ObjectValidatorTest extends PersistTestFunctions {
public void testGetValidationSubjectForModelIssue() throws Exception {
Model m = new ModelFullIndexed(null);
m.setProject(new Project());
List<Pair<Object, String>> issues = objectValidator.getValidationIssues(m);
List<Pair<Object, String>> issues = objectValidator.getValidationIssues(m.getModelData());
assertEquals(1, issues.size());
assertEquals(m.getModelData(), issues.get(0).getLeft());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment