Skip to content

Commit

Permalink
Revert "added a test for bug 2831420":
Browse files Browse the repository at this point in the history
* I incorrectly signed off this patch: the test file is missing

This reverts commit 5d15222.
  • Loading branch information
egonw committed Sep 13, 2009
1 parent 963b0a7 commit 2c2add6
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions src/test/org/openscience/cdk/geometry/BondToolsTest.java
Expand Up @@ -20,26 +20,21 @@
*/
package org.openscience.cdk.geometry;

import java.io.InputStream;
import java.util.Iterator;

import org.junit.Assert;
import org.junit.Test;
import org.openscience.cdk.CDKTestCase;
import org.openscience.cdk.ChemFile;
import org.openscience.cdk.ChemObject;
import org.openscience.cdk.atomtype.CDKAtomTypeMatcher;
import org.openscience.cdk.config.AtomTypeFactory;
import org.openscience.cdk.geometry.BondTools;
import org.openscience.cdk.interfaces.IAtom;
import org.openscience.cdk.interfaces.IAtomContainer;
import org.openscience.cdk.interfaces.IAtomType;
import org.openscience.cdk.interfaces.IMolecule;
import org.openscience.cdk.io.MDLV2000Reader;
import org.openscience.cdk.io.XYZReader;
import org.openscience.cdk.nonotify.NoNotificationChemObjectBuilder;
import org.openscience.cdk.tools.CDKHydrogenAdder;
import org.openscience.cdk.tools.manipulator.AtomContainerManipulator;
import org.openscience.cdk.tools.manipulator.AtomTypeManipulator;
import org.openscience.cdk.CDKTestCase;

import java.io.InputStream;
import java.util.Iterator;

/**
* @cdk.module test-standard
Expand Down Expand Up @@ -229,18 +224,6 @@ public void testIsValidDoubleBondConfiguration_IAtomContainer_IBond() throws Exc
IMolecule mol=chemFile.getChemSequence(0).getChemModel(0).getMoleculeSet().getMolecule(0);
Assert.assertTrue(BondTools.isStereo(mol, mol.getAtom(5)));
}

/**
* @cdk.bug 2831420
*/
@Test public void testBug2831420_withHs() throws Exception {
String filename = "data/mdl/bug2846213.mol";
InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
MDLV2000Reader reader = new MDLV2000Reader(ins);
ChemFile chemFile = (ChemFile)reader.read((ChemObject)new ChemFile());
IMolecule mol=chemFile.getChemSequence(0).getChemModel(0).getMoleculeSet().getMolecule(0);
Assert.assertTrue(BondTools.isStereo(mol, mol.getAtom(5)));
}
}


0 comments on commit 2c2add6

Please sign in to comment.