@@ -70,7 +70,7 @@ public static void setup() {
70
70
public void testDetectButadiene () throws Exception {
71
71
logger .info ("Entering testDetectButadiene." );
72
72
IAtomContainer mol = null ;
73
- String filename = "data/cml/ butadiene.cml" ;
73
+ String filename = "butadiene.cml" ;
74
74
mol = readCMLMolecule (filename );
75
75
76
76
AtomContainerManipulator .percieveAtomTypesAndConfigureAtoms (mol );
@@ -101,7 +101,7 @@ public void testDetectButadiene() throws Exception {
101
101
public void testDetectNaphtalene () throws Exception {
102
102
logger .info ("Entering testDetectNaphtalene." );
103
103
IAtomContainer mol = null ;
104
- String filename = "data/cml/ naphtalene.cml" ;
104
+ String filename = "naphtalene.cml" ;
105
105
mol = readCMLMolecule (filename );
106
106
107
107
AtomContainerManipulator .percieveAtomTypesAndConfigureAtoms (mol );
@@ -132,7 +132,7 @@ public void testDetectNaphtalene() throws Exception {
132
132
public void testDetectToluene () throws Exception {
133
133
logger .info ("Entering testDetectToluene." );
134
134
IAtomContainer mol = null ;
135
- String filename = "data/cml/ toluene.cml" ;
135
+ String filename = "toluene.cml" ;
136
136
mol = readCMLMolecule (filename );
137
137
138
138
AtomContainerManipulator .percieveAtomTypesAndConfigureAtoms (mol );
@@ -163,8 +163,8 @@ public void testDetectToluene() throws Exception {
163
163
public void testNonConnectedPiSystems () throws Exception {
164
164
logger .info ("Entering testNonConnectedPiSystems." );
165
165
IAtomContainer mol = null ;
166
- String filename = "data/mdl/ nonConnectedPiSystems.mol" ;
167
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
166
+ String filename = "nonConnectedPiSystems.mol" ;
167
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
168
168
MDLReader reader = new MDLReader (ins );
169
169
IChemFile chemFile = (IChemFile ) reader .read ((ChemObject ) new ChemFile ());
170
170
mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -208,8 +208,8 @@ public void testNonConnectedPiSystems() throws Exception {
208
208
public void testPiSystemWithCarbokation () throws Exception {
209
209
logger .info ("Entering testPiSystemWithCarbokation." );
210
210
IAtomContainer mol = null ;
211
- String filename = "data/mdl/ piSystemWithCarbokation.mol" ;
212
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
211
+ String filename = "piSystemWithCarbokation.mol" ;
212
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
213
213
MDLReader reader = new MDLReader (ins );
214
214
IChemFile chemFile = (IChemFile ) reader .read ((ChemObject ) new ChemFile ());
215
215
mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -251,8 +251,8 @@ public void testPiSystemWithCarbokation() throws Exception {
251
251
public void testPiSystemWithCumulativeDB () throws Exception {
252
252
logger .info ("Entering testPiSystemWithCumulativeDB." );
253
253
IAtomContainer mol = null ;
254
- String filename = "data/mdl/ piSystemCumulative.mol" ;
255
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
254
+ String filename = "piSystemCumulative.mol" ;
255
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
256
256
MDLReader reader = new MDLReader (ins );
257
257
IChemFile chemFile = (IChemFile ) reader .read ((ChemObject ) new ChemFile ());
258
258
@@ -330,8 +330,8 @@ public void testAceticAcid() throws Exception {
330
330
@ Test
331
331
public void testNN_dimethylaniline_cation () throws Exception {
332
332
IAtomContainer mol = null ;
333
- String filename = "data/mdl/ NN_dimethylaniline.mol" ;
334
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
333
+ String filename = "NN_dimethylaniline.mol" ;
334
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
335
335
MDLV2000Reader reader = new MDLV2000Reader (ins );
336
336
IChemFile chemFile = (IChemFile ) reader .read ((ChemObject ) new ChemFile ());
337
337
mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -452,7 +452,7 @@ public void test3Aminomethane_cation() throws Exception {
452
452
private IAtomContainer readCMLMolecule (String filename ) throws Exception {
453
453
IAtomContainer mol = null ;
454
454
logger .debug ("Filename: " + filename );
455
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
455
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
456
456
CMLReader reader = new CMLReader (ins );
457
457
458
458
IChemFile file = (IChemFile ) reader .read (new ChemFile ());
0 commit comments