Skip to content

Commit

Permalink
Updated to avoid use of deprecated StringBufferInputStream
Browse files Browse the repository at this point in the history
  • Loading branch information
rajarshi committed Nov 29, 2009
1 parent c7c92df commit c8ec6e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/org/openscience/cdk/io/INChIPlainTextReaderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
* */
package org.openscience.cdk.io;

import java.io.InputStream;
import java.io.StringBufferInputStream;

import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
Expand All @@ -38,6 +35,9 @@
import org.openscience.cdk.tools.ILoggingTool;
import org.openscience.cdk.tools.LoggingToolFactory;

import java.io.InputStream;
import java.io.StringReader;

/**
* TestCase for the reading INChI plain text files.
*
Expand Down Expand Up @@ -89,7 +89,7 @@ public class INChIPlainTextReaderTest extends SimpleChemObjectReaderTest {


@Test public void testChebi26120() throws Exception {
StringBufferInputStream ins = new StringBufferInputStream("InChI=1/C40H62/c1-33(2)19-13-23-37(7)27-17-31-39(9)29-15-25-35(5)21-11-12-22-36(6)26-16-30-40(10)32-18-28-38(8)24-14-20-34(3)4/h11-12,15,19-22,25,27-30H,13-14,16-18,23-24,26,31-32H2,1-10H3");
StringReader ins = new StringReader("InChI=1/C40H62/c1-33(2)19-13-23-37(7)27-17-31-39(9)29-15-25-35(5)21-11-12-22-36(6)26-16-30-40(10)32-18-28-38(8)24-14-20-34(3)4/h11-12,15,19-22,25,27-30H,13-14,16-18,23-24,26,31-32H2,1-10H3");
INChIPlainTextReader reader = new INChIPlainTextReader(ins);
ChemFile chemFile = (ChemFile)reader.read((ChemObject)new ChemFile());

Expand Down

0 comments on commit c8ec6e0

Please sign in to comment.