Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
If the proper behavior is to throw an exception, then the unit test s…
…hould expect it

Change-Id: Ia47ea485b73ecec0d9259272aef0b111e142d022
Signed-off-by: John May <john.wilkinsonmay@gmail.com>
  • Loading branch information
egonw authored and johnmay committed Aug 5, 2013
1 parent 68db314 commit a654ea4
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -965,7 +965,7 @@ public void testBug1269() throws Exception {
*
* @cdk.bug 1279
*/
@Test (timeout=5000)
@Test (timeout=5000,expected=Exception.class)
public void testBug1279() throws Exception {

SmilesParser sp =
Expand All @@ -978,8 +978,6 @@ public void testBug1279() throws Exception {
StructureDiagramGenerator sdg = new StructureDiagramGenerator();
sdg.setMolecule(mol);
sdg.generateCoordinates(new Vector2d(0, 1));
mol = sdg.getMolecule();
assertTrue(GeometryTools.has2DCoordinates(mol));
}

}
Expand Down

0 comments on commit a654ea4

Please sign in to comment.