Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed unit tests, to match the current implementation

Signed-off-by: Rajarshi  Guha <rajarshi.guha@gmail.com>
  • Loading branch information...
commit d33c6972b14cf8d80ac6896d2750c036210a0f06 1 parent 648f4ca
@egonw egonw authored rajarshi committed
Showing with 7 additions and 12 deletions.
  1. +7 −12 src/test/org/openscience/cdk/io/Mol2WriterTest.java
View
19 src/test/org/openscience/cdk/io/Mol2WriterTest.java
@@ -24,14 +24,17 @@
*/
package org.openscience.cdk.io;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringWriter;
+import java.util.List;
+
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
-import org.openscience.cdk.AtomContainerSet;
import org.openscience.cdk.ChemFile;
-import org.openscience.cdk.ChemModel;
import org.openscience.cdk.DefaultChemObjectBuilder;
-import org.openscience.cdk.MoleculeSet;
+import org.openscience.cdk.Molecule;
import org.openscience.cdk.aromaticity.CDKHueckelAromaticityDetector;
import org.openscience.cdk.exception.CDKException;
import org.openscience.cdk.interfaces.IAtomContainer;
@@ -41,11 +44,6 @@
import org.openscience.cdk.tools.manipulator.AtomContainerManipulator;
import org.openscience.cdk.tools.manipulator.ChemFileManipulator;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.StringWriter;
-import java.util.List;
-
/**
* TestCase for the writer MOL2 writer.
*
@@ -65,10 +63,7 @@ public static void setup() {
@Test
public void testAccepts() throws Exception {
Mol2Writer writer = new Mol2Writer();
- Assert.assertTrue(writer.accepts(ChemFile.class));
- Assert.assertTrue(writer.accepts(ChemModel.class));
- Assert.assertTrue(writer.accepts(MoleculeSet.class));
- Assert.assertTrue(writer.accepts(AtomContainerSet.class));
+ Assert.assertTrue(writer.accepts(Molecule.class));
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.