Skip to content

Commit b8cfb1d

Browse files
johnmayegonw
authored andcommitted
Eliminate testdata dependency from cdk-test-atomtype
1 parent b33dc3a commit b8cfb1d

File tree

6 files changed

+10
-17
lines changed

6 files changed

+10
-17
lines changed

base/test-atomtype/pom.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,6 @@
7373
<version>${project.parent.version}</version>
7474
<scope>test</scope>
7575
</dependency>
76-
<dependency>
77-
<groupId>${project.groupId}</groupId>
78-
<artifactId>cdk-testdata</artifactId>
79-
<version>${project.parent.version}</version>
80-
<type>test-jar</type>
81-
<scope>test</scope>
82-
</dependency>
8376
</dependencies>
8477

8578
<build>

base/test-atomtype/src/test/java/org/openscience/cdk/atomtype/SybylAtomTypeMatcherTest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ public void testFindMatchingAtomType_IAtomContainer_IAtom() throws Exception {
8989

9090
@Test
9191
public void testFindMatchingAtomType_IAtomContainer() throws Exception {
92-
String filename = "data/mol2/atomtyping.mol2";
93-
InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
92+
String filename = "atomtyping.mol2";
93+
InputStream ins = this.getClass().getResourceAsStream(filename);
9494
Mol2Reader reader = new Mol2Reader(ins);
9595
IAtomContainer mol = (IAtomContainer) reader.read(new AtomContainer());
9696

@@ -105,8 +105,8 @@ public void testFindMatchingAtomType_IAtomContainer() throws Exception {
105105

106106
@Test
107107
public void testAtomTyping() throws Exception {
108-
String filename = "data/mol2/atomtyping.mol2";
109-
InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
108+
String filename = "atomtyping.mol2";
109+
InputStream ins = this.getClass().getResourceAsStream(filename);
110110
Mol2Reader reader = new Mol2Reader(ins);
111111
IAtomContainer molecule = (IAtomContainer) reader.read(new AtomContainer());
112112
Assert.assertNotNull(molecule);
@@ -166,8 +166,8 @@ public void testBenzene_AtomContainer() throws Exception {
166166

167167
@Test
168168
public void testAtomTyping4() throws Exception {
169-
String filename = "data/mol2/atomtyping4.mol2";
170-
InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
169+
String filename = "atomtyping4.mol2";
170+
InputStream ins = this.getClass().getResourceAsStream(filename);
171171
Mol2Reader reader = new Mol2Reader(ins);
172172
IAtomContainer molecule = (IAtomContainer) reader.read(new AtomContainer());
173173
Assert.assertNotNull(molecule);
@@ -201,8 +201,8 @@ public void testNonExistingType() throws Exception {
201201

202202
@Test
203203
public void testAtomTyping2() throws Exception {
204-
String filename = "data/mol2/atomtyping2.mol2";
205-
InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
204+
String filename = "atomtyping2.mol2";
205+
InputStream ins = this.getClass().getResourceAsStream(filename);
206206
Mol2Reader reader = new Mol2Reader(ins);
207207
IAtomContainer molecule = (IAtomContainer) reader.read(new AtomContainer());
208208
Assert.assertNotNull(molecule);
@@ -222,8 +222,8 @@ public void testAtomTyping2() throws Exception {
222222

223223
@Test
224224
public void testAtomTyping3() throws Exception {
225-
String filename = "data/mol2/atomtyping3.mol2";
226-
InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
225+
String filename = "atomtyping3.mol2";
226+
InputStream ins = this.getClass().getResourceAsStream(filename);
227227
Mol2Reader reader = new Mol2Reader(ins);
228228
IAtomContainer molecule = (IAtomContainer) reader.read(new AtomContainer());
229229
Assert.assertNotNull(molecule);

0 commit comments

Comments
 (0)