Skip to content

Commit 7f91aa7

Browse files
johnmayegonw
authored andcommitted
Eliminate testdata dependency on cdk-charges.
1 parent 42749ab commit 7f91aa7

File tree

5 files changed

+113
-11
lines changed

5 files changed

+113
-11
lines changed

descriptor/qsarmolecular/src/test/java/org/openscience/cdk/qsar/descriptors/molecular/BCUTDescriptorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ public void testHAddition() throws Exception {
173173
*/
174174
@Test
175175
public void testUndefinedValues() throws Exception {
176-
String filename = "data/mdl/burden_undefined.sdf";
177-
InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
176+
String filename = "burden_undefined.sdf";
177+
InputStream ins = this.getClass().getResourceAsStream(filename);
178178
ISimpleChemObjectReader reader = new MDLV2000Reader(ins);
179179
ChemFile content = reader.read(new ChemFile());
180180
List cList = ChemFileManipulator.getAllAtomContainers(content);

tool/charges/pom.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,6 @@
8989
<type>test-jar</type>
9090
<scope>test</scope>
9191
</dependency>
92-
<dependency>
93-
<groupId>${project.groupId}</groupId>
94-
<artifactId>cdk-testdata</artifactId>
95-
<version>${project.parent.version}</version>
96-
<type>test-jar</type>
97-
<scope>test</scope>
98-
</dependency>
9992
</dependencies>
10093

10194
</project>

tool/charges/src/test/java/org/openscience/cdk/charges/GasteigerMarsiliPartialChargesTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ public void testSetStepSize() throws Exception {
235235

236236
@Test(expected = CDKException.class)
237237
public void testUndefinedPartialCharge() throws Exception {
238-
String filename = "data/mdl/burden_undefined.sdf";
239-
InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
238+
String filename = "burden_undefined.sdf";
239+
InputStream ins = this.getClass().getResourceAsStream(filename);
240240
ISimpleChemObjectReader reader = new MDLV2000Reader(ins);
241241
ChemFile content = reader.read(new ChemFile());
242242
reader.close();
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
2+
OpenBabel02181210582D
3+
4+
10 12 0 0 0 0 0 0 0 0999 V2000
5+
1.7872 -1.2465 0.0000 As 0 0 0 0 0
6+
1.7549 -2.3765 0.0000 O 0 0 0 0 0
7+
2.8039 -2.4283 0.0000 As 0 0 0 0 0
8+
1.4020 -3.2378 0.0000 O 0 0 0 0 0
9+
0.0000 -2.4283 0.0000 As 0 0 0 0 0
10+
0.7414 -1.8034 0.0000 O 0 0 0 0 0
11+
0.0000 -0.8094 0.0000 O 0 0 0 0 0
12+
1.4020 0.0000 0.0000 As 0 0 0 0 0
13+
0.9260 -0.8256 0.0000 O 0 0 0 0 0
14+
2.8039 -0.8094 0.0000 O 0 0 0 0 0
15+
1 2 1 0 0 0
16+
1 6 1 0 0 0
17+
1 9 1 0 0 0
18+
2 3 1 0 0 0
19+
3 4 1 0 0 0
20+
3 10 1 0 0 0
21+
4 5 1 0 0 0
22+
5 6 1 0 0 0
23+
5 7 1 0 0 0
24+
7 8 1 0 0 0
25+
8 9 1 0 0 0
26+
8 10 1 0 0 0
27+
M END
28+
> <DSSTox_RID>
29+
20103
30+
31+
> <DSSTox_CID>
32+
103
33+
34+
> <DSSTox_Generic_SID>
35+
20103
36+
37+
> <DSSTox_FileID>
38+
106_CPDBAS_v5d
39+
40+
> <STRUCTURE_Formula>
41+
As4O6
42+
43+
> <STRUCTURE_MolecularWeight>
44+
395.6828
45+
46+
> <STRUCTURE_ChemicalType>
47+
inorganic
48+
49+
> <STRUCTURE_Shown>
50+
tested chemical
51+
52+
> <TestSubstance_ChemicalName>
53+
Arsenious oxide
54+
55+
> <TestSubstance_CASRN>
56+
1327-53-3
57+
58+
> <TestSubstance_Description>
59+
single chemical compound
60+
61+
> <STRUCTURE_ChemicalName_IUPAC>
62+
tricyclo[3.3.1.1~3,7~]tetraarsoxane
63+
64+
> <STRUCTURE_SMILES>
65+
[As]21O[As]3O[As](O1)O[As](O2)O3
66+
67+
> <STRUCTURE_InChI>
68+
InChI=1/As4O6/c5-1-6-3-8-2(5)9-4(7-1)10-3
69+
70+
> <STRUCTURE_InChIKey>
71+
KTTMEOWBIWLMSE-UHFFFAOYAT
72+
73+
> <StudyType>
74+
Carcinogenicity
75+
76+
> <Endpoint>
77+
TD50; Tumor Target Sites
78+
79+
> <Species>
80+
mouse
81+
82+
> <ActivityScore_CPDBAS_Mouse>
83+
0
84+
85+
> <TD50_Mouse_Note>
86+
no positive results
87+
88+
> <TargetSites_Mouse_Male>
89+
no positive results
90+
91+
> <TargetSites_Mouse_Female>
92+
no positive results
93+
94+
> <ActivityOutcome_CPDBAS_Mouse>
95+
inactive
96+
97+
> <ActivityOutcome_CPDBAS_SingleCellCall>
98+
inactive
99+
100+
> <ActivityOutcome_CPDBAS_MultiCellCall>
101+
inactive
102+
103+
> <ActivityOutcome_CPDBAS_MultiCellCall_Details>
104+
multisex inactive
105+
106+
> <ChemicalPage_URL>
107+
http://potency.berkeley.edu/chempages/ARSENIOUS%20OXIDE.html
108+
109+
$$$$

0 commit comments

Comments
 (0)