Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added close to unit-test resource stream
  • Loading branch information
johnmay authored and egonw committed Feb 19, 2012
1 parent 07bbbb2 commit eae7598
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/org/openscience/cdk/io/MDLV2000ReaderTest.java
Expand Up @@ -24,6 +24,7 @@
* */
package org.openscience.cdk.io;

import java.io.IOException;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
Expand Down Expand Up @@ -920,12 +921,14 @@ public void testPseudoAtomLabels() throws Exception {
}

@Test
public void testAtomParity() throws CDKException{
public void testAtomParity() throws CDKException, IOException{

InputStream in = ClassLoader.getSystemResourceAsStream("data/mdl/mol_testAtomParity.mol");
MDLV2000Reader reader = new MDLV2000Reader(in);
IAtomContainer molecule = DefaultChemObjectBuilder.getInstance().newInstance(IAtomContainer.class);
reader.read(molecule);
reader.close();


boolean chiralCentre = false;
IAtom[] atoms = AtomContainerManipulator.getAtomArray(molecule);
Expand All @@ -936,6 +939,7 @@ public void testAtomParity() throws CDKException{
}
}


Assert.assertTrue(chiralCentre);

}
Expand Down

0 comments on commit eae7598

Please sign in to comment.