Commit 954aa768 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unit tests fixed

parent 6757baca
Pipeline #31272 passed with stage
in 12 minutes and 36 seconds
......@@ -101,7 +101,7 @@ public class AbstractImageGeneratorTest extends GraphicsTestFunctions {
Graphics2D graphics = createGraphicsMock();
Model model = createSimpleModel();
model.getElementByElementId("s1").setVisibilityLevel(2);
model.getReactions().iterator().next().getModifiers().get(0).getElement().setVisibilityLevel(2);
AbstractImageGenerator gen = createAbstractImageGeneratorMock(graphics, model);
gen.setParams(new AbstractImageGenerator.Params().model(model).nested(true).level(0));
......
......@@ -57,6 +57,7 @@ public abstract class CommandTestFunctions {
GenericProtein alias = new GenericProtein("alias_id");
assignCoordinates(alias);
alias.setZ(2);
alias.setNotes(null);
List<String> list = new ArrayList<>();
......@@ -68,6 +69,7 @@ public abstract class CommandTestFunctions {
Complex complexAlias = new Complex("complex_alias_id");
assignCoordinates(complexAlias);
complexAlias.setZ(3);
model.addElement(complexAlias);
complexAlias.addSpecies(alias);
......
Supports Markdown
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