Skip to content

Commit

Permalink
Added assertions to unit test for values being not null
Browse files Browse the repository at this point in the history
Signed-off-by: Rajarshi  Guha <rajarshi.guha@gmail.com>
  • Loading branch information
egonw authored and rajarshi committed Aug 5, 2009
1 parent f19a451 commit 863b0a5
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -92,6 +92,14 @@ public class CDKAtomTypeMatcherFilesTest extends AbstractCDKAtomTypeTest {
IAtomType[] types1 = atomTypeMatcher.findMatchingAtomType(mol1);
IAtomType[] types2 = atomTypeMatcher.findMatchingAtomType(mol2);
for (int i=0; i<mol1.getAtomCount(); i++) {
Assert.assertNotNull(
"Atom typing in mol1 failed for atom " + (i+1),
types1[i]
);
Assert.assertNotNull(
"Atom typing in mol2 failed for atom " + (i+1),
types2[i]
);
Assert.assertEquals(
"Atom type mismatch for the " + (i+1) + " atom",
types1[i].getAtomTypeName(),
Expand Down

0 comments on commit 863b0a5

Please sign in to comment.