Commit 1fb72809 authored by lcottret's avatar lcottret
Browse files

complete the tests for ReactionAttributes

parent b62dd8f3
......@@ -525,4 +525,32 @@ public class ReactionAttributesTest {
assertEquals(sideCompounds, ReactionAttributes.getSideCompounds(r));
}
@Test
public void getHole() {
Boolean hole = true;
BioReaction r = new BioReaction("r");
assertFalse(ReactionAttributes.getHole(r));
r.setAttribute(ReactionAttributes.HOLE, hole);
assertTrue(ReactionAttributes.getHole(r));
}
@Test
public void setHole() {
Boolean hole = true;
BioReaction r = new BioReaction("r");
ReactionAttributes.setHole(r, hole);
assertTrue((Boolean) r.getAttribute(ReactionAttributes.HOLE));
}
}
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