@@ -45,8 +45,8 @@ public BondToolsTest() {
45
45
46
46
@ Test
47
47
public void testIsValidDoubleBondConfiguration_IAtomContainer_IBond () throws Exception {
48
- String filename = "data/mdl/ testdoublebondconfig.mol" ;
49
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
48
+ String filename = "testdoublebondconfig.mol" ;
49
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
50
50
MDLV2000Reader reader = new MDLV2000Reader (ins );
51
51
ChemFile chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
52
52
IAtomContainer mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -62,8 +62,8 @@ public void testIsValidDoubleBondConfiguration_IAtomContainer_IBond() throws Exc
62
62
63
63
@ Test
64
64
public void testIsCisTrans_IAtom_IAtom_IAtom_IAtom_IAtomContainer () throws Exception {
65
- String filename = "data/mdl/ testdoublebondconfig.mol" ;
66
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
65
+ String filename = "testdoublebondconfig.mol" ;
66
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
67
67
MDLV2000Reader reader = new MDLV2000Reader (ins );
68
68
ChemFile chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
69
69
IAtomContainer mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -72,8 +72,8 @@ public void testIsCisTrans_IAtom_IAtom_IAtom_IAtom_IAtomContainer() throws Excep
72
72
73
73
@ Test
74
74
public void testIsLeft_IAtom_IAtom_IAtom () throws Exception {
75
- String filename = "data/mdl/ testdoublebondconfig.mol" ;
76
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
75
+ String filename = "testdoublebondconfig.mol" ;
76
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
77
77
MDLV2000Reader reader = new MDLV2000Reader (ins );
78
78
ChemFile chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
79
79
IAtomContainer mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -82,8 +82,8 @@ public void testIsLeft_IAtom_IAtom_IAtom() throws Exception {
82
82
83
83
@ Test
84
84
public void testGiveAngleBothMethods_IAtom_IAtom_IAtom_boolean () throws Exception {
85
- String filename = "data/mdl/ testdoublebondconfig.mol" ;
86
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
85
+ String filename = "testdoublebondconfig.mol" ;
86
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
87
87
MDLV2000Reader reader = new MDLV2000Reader (ins );
88
88
ChemFile chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
89
89
IAtomContainer mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -115,8 +115,8 @@ public void testCloseEnoughToBond_IAtom_IAtom_double() throws Exception {
115
115
116
116
@ Test
117
117
public void testGiveAngleBothMethods_Point2d_Point2d_Point2d_boolean () throws Exception {
118
- String filename = "data/mdl/ testdoublebondconfig.mol" ;
119
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
118
+ String filename = "testdoublebondconfig.mol" ;
119
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
120
120
MDLV2000Reader reader = new MDLV2000Reader (ins );
121
121
ChemFile chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
122
122
IAtomContainer mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -128,15 +128,15 @@ public void testGiveAngleBothMethods_Point2d_Point2d_Point2d_boolean() throws Ex
128
128
129
129
@ Test
130
130
public void testIsTetrahedral_IAtomContainer_IAtom_boolean () throws Exception {
131
- String filename = "data/mdl/ tetrahedral_1.mol" ;
132
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
131
+ String filename = "tetrahedral_1.mol" ;
132
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
133
133
MDLV2000Reader reader = new MDLV2000Reader (ins );
134
134
ChemFile chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
135
135
IAtomContainer mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
136
136
Assert .assertEquals (BondTools .isTetrahedral (mol , mol .getAtom (0 ), true ), 1 );
137
137
Assert .assertEquals (BondTools .isTetrahedral (mol , mol .getAtom (1 ), true ), 0 );
138
- filename = "data/mdl/ tetrahedral_1_lazy.mol" ;
139
- ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
138
+ filename = "tetrahedral_1_lazy.mol" ;
139
+ ins = this .getClass ().getResourceAsStream (filename );
140
140
reader = new MDLV2000Reader (ins );
141
141
chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
142
142
mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -146,8 +146,8 @@ public void testIsTetrahedral_IAtomContainer_IAtom_boolean() throws Exception {
146
146
147
147
@ Test
148
148
public void testIsTrigonalBipyramidalOrOctahedral_IAtomContainer_IAtom () throws Exception {
149
- String filename = "data/mdl/ trigonal_bipyramidal.mol" ;
150
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
149
+ String filename = "trigonal_bipyramidal.mol" ;
150
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
151
151
MDLV2000Reader reader = new MDLV2000Reader (ins );
152
152
ChemFile chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
153
153
IAtomContainer mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -157,8 +157,8 @@ public void testIsTrigonalBipyramidalOrOctahedral_IAtomContainer_IAtom() throws
157
157
158
158
@ Test
159
159
public void testIsStereo_IAtomContainer_IAtom () throws Exception {
160
- String filename = "data/mdl/ trigonal_bipyramidal.mol" ;
161
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
160
+ String filename = "trigonal_bipyramidal.mol" ;
161
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
162
162
MDLV2000Reader reader = new MDLV2000Reader (ins );
163
163
ChemFile chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
164
164
IAtomContainer mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -168,8 +168,8 @@ public void testIsStereo_IAtomContainer_IAtom() throws Exception {
168
168
169
169
@ Test
170
170
public void testIsStereo_IAtomContainer_IAtom_forinvalid () throws Exception {
171
- String filename = "data/mdl/ trigonal_bipyramidal.mol" ;
172
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
171
+ String filename = "trigonal_bipyramidal.mol" ;
172
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
173
173
MDLV2000Reader reader = new MDLV2000Reader (ins );
174
174
ChemFile chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
175
175
IAtomContainer mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -182,8 +182,8 @@ public void testIsStereo_IAtomContainer_IAtom_forinvalid() throws Exception {
182
182
183
183
@ Test
184
184
public void testIsSquarePlanar_IAtomContainer_IAtom () throws Exception {
185
- String filename = "data/mdl/ squareplanar.mol" ;
186
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
185
+ String filename = "squareplanar.mol" ;
186
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
187
187
MDLV2000Reader reader = new MDLV2000Reader (ins );
188
188
ChemFile chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
189
189
IAtomContainer mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -193,14 +193,14 @@ public void testIsSquarePlanar_IAtomContainer_IAtom() throws Exception {
193
193
194
194
@ Test
195
195
public void testStereosAreOpposite_IAtomContainer_IAtom () throws Exception {
196
- String filename = "data/mdl/ squareplanar.mol" ;
197
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
196
+ String filename = "squareplanar.mol" ;
197
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
198
198
MDLV2000Reader reader = new MDLV2000Reader (ins );
199
199
ChemFile chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
200
200
IAtomContainer mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
201
201
Assert .assertFalse (BondTools .stereosAreOpposite (mol , mol .getAtom (0 )));
202
- filename = "data/mdl/ tetrahedral_with_four_wedges.mol" ;
203
- ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
202
+ filename = "tetrahedral_with_four_wedges.mol" ;
203
+ ins = this .getClass ().getResourceAsStream (filename );
204
204
reader = new MDLV2000Reader (ins );
205
205
chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
206
206
mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -209,8 +209,8 @@ public void testStereosAreOpposite_IAtomContainer_IAtom() throws Exception {
209
209
210
210
@ Test
211
211
public void testMakeUpDownBonds_IAtomContainer () throws Exception {
212
- String filename = "data/mdl/ tetrahedral_2_lazy.mol" ;
213
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
212
+ String filename = "tetrahedral_2_lazy.mol" ;
213
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
214
214
MDLV2000Reader reader = new MDLV2000Reader (ins );
215
215
ChemFile chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
216
216
IAtomContainer mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -220,8 +220,8 @@ public void testMakeUpDownBonds_IAtomContainer() throws Exception {
220
220
221
221
@ Test
222
222
public void testGiveAngle_IAtom_IAtom_IAtom () throws Exception {
223
- String filename = "data/mdl/ testdoublebondconfig.mol" ;
224
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
223
+ String filename = "testdoublebondconfig.mol" ;
224
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
225
225
MDLV2000Reader reader = new MDLV2000Reader (ins );
226
226
ChemFile chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
227
227
IAtomContainer mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -231,8 +231,8 @@ public void testGiveAngle_IAtom_IAtom_IAtom() throws Exception {
231
231
232
232
@ Test
233
233
public void testGiveAngleFromMiddle_IAtom_IAtom_IAtom () throws Exception {
234
- String filename = "data/mdl/ testdoublebondconfig.mol" ;
235
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
234
+ String filename = "testdoublebondconfig.mol" ;
235
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
236
236
MDLV2000Reader reader = new MDLV2000Reader (ins );
237
237
ChemFile chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
238
238
IAtomContainer mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
@@ -245,8 +245,8 @@ public void testGiveAngleFromMiddle_IAtom_IAtom_IAtom() throws Exception {
245
245
*/
246
246
@ Test
247
247
public void testBug2831420 () throws Exception {
248
- String filename = "data/mdl/ bug2831420.mol" ;
249
- InputStream ins = this .getClass ().getClassLoader (). getResourceAsStream (filename );
248
+ String filename = "bug2831420.mol" ;
249
+ InputStream ins = this .getClass ().getResourceAsStream (filename );
250
250
MDLV2000Reader reader = new MDLV2000Reader (ins );
251
251
ChemFile chemFile = (ChemFile ) reader .read ((ChemObject ) new ChemFile ());
252
252
IAtomContainer mol = chemFile .getChemSequence (0 ).getChemModel (0 ).getMoleculeSet ().getAtomContainer (0 );
0 commit comments