Skip to content

Commit

Permalink
Test invalid flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay committed Nov 9, 2016
1 parent 974b385 commit 46ba16c
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -129,6 +129,18 @@ public void testGetID() {
Assert.assertNull(chemObject.getID());
}

@Test(expected = IllegalArgumentException.class)
public void setFlagThatIsTooBig() {
IChemObject chemObject = newChemObject();
chemObject.setFlag(1 << 17, true);
}

@Test(expected = IllegalArgumentException.class)
public void setFlagThatIsInvalid() {
IChemObject chemObject = newChemObject();
chemObject.setFlag(999, true);
}

@Test
public void testSetFlags_arrayboolean() {
IChemObject chemObject = newChemObject();
Expand Down

0 comments on commit 46ba16c

Please sign in to comment.