Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Replaced (I)Molecule with (I)AtomContainer
Change-Id: I077605ed6ad2a4f62a7925e5b5ccdf0b30f73cf3
  • Loading branch information
egonw committed Mar 23, 2012
1 parent 26d92f7 commit fb9194e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/test/org/openscience/cdk/io/MDLReaderTest.java
Expand Up @@ -35,6 +35,7 @@
import org.openscience.cdk.ChemFile;
import org.openscience.cdk.ChemModel;
import org.openscience.cdk.ChemObject;
import org.openscience.cdk.DefaultChemObjectBuilder;
import org.openscience.cdk.exception.CDKException;
import org.openscience.cdk.interfaces.IAtom;
import org.openscience.cdk.interfaces.IAtomContainer;
Expand Down Expand Up @@ -238,7 +239,7 @@ public void testHas2DCoordinates_With000() throws CDKException {
public void testMissingAtomProperties() throws Exception {
InputStream in = ClassLoader.getSystemResourceAsStream("data/mdl/bug3485634.mol");
MDLReader reader = new MDLReader(in);
IMolecule molecule = DefaultChemObjectBuilder.getInstance().newInstance(IMolecule.class);
IAtomContainer molecule = DefaultChemObjectBuilder.getInstance().newInstance(IAtomContainer.class);
molecule = reader.read(molecule);
Assert.assertEquals(9, molecule.getAtomCount());
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/org/openscience/cdk/io/MDLV2000ReaderTest.java
Expand Up @@ -964,7 +964,7 @@ public void testPseudoAtomLabels() throws Exception {
public void testMissingAtomProperties() throws Exception {
InputStream in = ClassLoader.getSystemResourceAsStream("data/mdl/bug3485634.mol");
MDLV2000Reader reader = new MDLV2000Reader(in);
IMolecule molecule = DefaultChemObjectBuilder.getInstance().newInstance(IMolecule.class);
IAtomContainer molecule = DefaultChemObjectBuilder.getInstance().newInstance(IAtomContainer.class);
molecule = reader.read(molecule);
Assert.assertEquals(9, molecule.getAtomCount());
}
Expand Down

0 comments on commit fb9194e

Please sign in to comment.