Skip to content
Snippets Groups Projects
Commit d90e373a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

mockito is used for unit tests

parent 1b38b069
No related branches found
No related tags found
3 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!442Problem with exporting to celldesigner and parsing from celldesigner,!440Problem with exporting to celldesigner
......@@ -2,19 +2,13 @@ package lcsb.mapviewer.converter.model.celldesigner.geometry;
import static org.junit.Assert.assertEquals;
import java.awt.geom.PathIterator;
import java.awt.geom.Point2D;
import org.apache.log4j.Logger;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import lcsb.mapviewer.common.Configuration;
import lcsb.mapviewer.common.EventStorageLoggerAppender;
import lcsb.mapviewer.common.geometry.LineTransformation;
import lcsb.mapviewer.converter.model.celldesigner.geometry.helper.CellDesignerAnchor;
import lcsb.mapviewer.converter.model.celldesigner.geometry.helper.CellDesignerEllipseTransformation;
import lcsb.mapviewer.converter.model.celldesigner.geometry.helper.CellDesignerPolygonTransformation;
import lcsb.mapviewer.converter.model.celldesigner.geometry.helper.CellDesignerRectangleTransformation;
......@@ -25,28 +19,12 @@ import lcsb.mapviewer.model.map.species.Species;
public class AbstractCellDesignerAliasConverterTest {
Logger logger = Logger.getLogger(AbstractCellDesignerAliasConverterTest.class);
AbstractCellDesignerAliasConverter<Species> converter = new AbstractCellDesignerAliasConverter<Species>(false) {
@Override
public Point2D getPointCoordinates(Species alias, CellDesignerAnchor anchor) {
return null;
}
@Override
protected PathIterator getBoundPathIterator(Species alias) {
return null;
}
};
@AfterClass
public static void tearDownAfterClass() throws Exception {
}
AbstractCellDesignerAliasConverter<Species> converter;
@SuppressWarnings("unchecked")
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
public void setUp() {
converter = Mockito.spy(AbstractCellDesignerAliasConverter.class);
}
@Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment