Commit 253f652a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

fix on unit test

parent 7e33272e
......@@ -2,43 +2,33 @@ package lcsb.mapviewer.model.map.species;
import static org.junit.Assert.assertEquals;
import java.util.HashSet;
import java.util.Set;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import lcsb.mapviewer.model.map.reaction.ReactionNode;
import lcsb.mapviewer.model.map.species.GenericProtein;
import lcsb.mapviewer.model.map.species.Species;
public class SpeciesTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public void testGetter() {
try {
Species species = new GenericProtein("id");
String state = "as";
Set<ReactionNode> node = new HashSet<>();
species.setState(state);
species.setNode(node);
assertEquals(state, species.getState());
assertEquals(node, species.getNode());
} catch (Exception e) {
e.printStackTrace();
throw e;
}
}
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public void testGetter() {
try {
Species species = new GenericProtein("id");
String state = "as";
species.setState(state);
assertEquals(state, species.getState());
} catch (Exception e) {
e.printStackTrace();
throw e;
}
}
}
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