work on getting the stuff in java

This commit is contained in:
Greg Landrum
2012-02-26 10:05:44 +00:00
parent 7ba9571e3c
commit aeaf84e4cb
2 changed files with 27 additions and 0 deletions

View File

@@ -189,6 +189,19 @@ public class BasicMoleculeTests extends GraphMolTest {
public void testErrorHandling_BadKekulize() {
RWMol.MolFromSmiles("c1cc1");
}
@Test(expected=MolSanitizeException.class)
public void testErrorHandling_BadKekulize2() {
RWMol mol=RWMol.MolFromSmiles("c1cc1",0,false);
RDKFuncs.sanitizeMol(mol);
}
@Test public void testErrorHandling_BadKekulize3() {
RWMol mol=RWMol.MolFromSmiles("c1cc1",0,false);
int ops=SanitizeFlags.SANITIZE_ALL.swigValue();
int failedAt=RDKFuncs.sanitizeMol(mol,ops);
assertEquals(failedAt,SanitizeFlags.SANITIZE_KEKULIZE.swigValue());
}
/* @Test -- the contents of this test now in UnitTestPickling, testIssue219
public void testConformer(){
}