Skip to content

Commit

Permalink
Be more informative when the test fails
Browse files Browse the repository at this point in the history
Change-Id: I1603134367a41849fa24da10da943f63850f35c0
  • Loading branch information
egonw committed Oct 31, 2012
1 parent bbf00f6 commit 8b8a848
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -686,7 +686,7 @@ public void testNewBond_IAtom_IMolecule() {
Assert.fail("I expected an exception, because this constructor does not exist.");
} catch (Exception exception) {
String message = exception.getMessage();
Assert.assertTrue(message.contains("Candidates are"));
Assert.assertTrue("But got this message instead: " + message, message.contains("Candidates are"));
}
}
}

0 comments on commit 8b8a848

Please sign in to comment.