Skip to content

Commit

Permalink
Added a missing test method for getFingerPrint()
Browse files Browse the repository at this point in the history
Change-Id: I11404ad5a209bf1ee13a5561e0b87b341d3296dc

Signed-off-by: Rajarshi  Guha <rajarshi.guha@gmail.com>
  • Loading branch information
egonw authored and rajarshi committed Jul 3, 2012
1 parent d648b3e commit 591623f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Expand Up @@ -62,6 +62,7 @@ public SignatureFingerprinter(int depth) {
this.signatureDepth = depth;
}

@TestMethod("testUnsupportedMethod")
public BitSet getFingerprint(IAtomContainer iAtomContainer) throws CDKException {
throw new UnsupportedOperationException();
}
Expand Down
Expand Up @@ -58,4 +58,12 @@ public void testFingerprint() throws Exception {
Assert.assertTrue(map.containsKey(print));
}
}

@Test(expected=UnsupportedOperationException.class)
public void testUnsupportedMethod() throws Exception {
SignatureFingerprinter fingerprinter = new SignatureFingerprinter(0);
SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
IAtomContainer mol = sp.parseSmiles("O(NC)CC");
fingerprinter.getFingerprint(mol);
}
}

0 comments on commit 591623f

Please sign in to comment.