Skip to content

Commit

Permalink
added new test-model:qsar
Browse files Browse the repository at this point in the history
git-svn-id: https://cdk.svn.sourceforge.net/svnroot/cdk/trunk/cdk@6221 eb4e18e3-b210-0410-a6ab-dec725e4b171
  • Loading branch information
miguelrojasch committed May 11, 2006
1 parent 4a6ecef commit 1d5576d
Show file tree
Hide file tree
Showing 77 changed files with 152 additions and 92 deletions.
2 changes: 2 additions & 0 deletions build.xml
Expand Up @@ -622,6 +622,7 @@
<antcall target="compile-module"><param name="module" value="test-valencycheck"/></antcall>
<antcall target="compile-module"><param name="module" value="test-experimental"/></antcall>
<antcall target="compile-module"><param name="module" value="test-osjvmts"/></antcall>
<antcall target="compile-module"><param name="module" value="test-qsar"/></antcall>
</target>

<target id="dist-large" name="dist-large" depends="dist-all"
Expand Down Expand Up @@ -853,6 +854,7 @@
<antcall target="test-module"><param name="module" value="reaction"/></antcall>
<antcall target="test-module"><param name="module" value="smiles"/></antcall>
<antcall target="test-module"><param name="module" value="experimental"/></antcall>
<antcall target="test-module"><param name="module" value="qsar"/></antcall>
</target>

<target id="limitations" name="limitations" depends="noJunit, dist-all"
Expand Down
2 changes: 0 additions & 2 deletions src/META-INF/test-extra.cdkdepends
Expand Up @@ -10,8 +10,6 @@ cdk-pdb.jar
cdk-render.jar
cdk-builder3d.jar
cdk-reaction.jar
cdk-qsar.jar
cdk-qsar-pdb.jar
cdk-applications.jar
cdk-valencycheck.jar
cdk-forcefield.jar
Expand Down
16 changes: 16 additions & 0 deletions src/META-INF/test-qsar.cdkdepends
@@ -0,0 +1,16 @@
cdk-interfaces.jar
cdk-core.jar
cdk-standard.jar
cdk-data.jar
cdk-io.jar
cdk-pdb.jar
cdk-valencycheck.jar
cdk-extra.jar
cdk-reaction.jar
cdk-charges.jar
cdk-qsar.jar
cdk-qsar-pdb.jar
cdk-smiles.jar
cdk-test-core.jar

cdk-builder3d.jar
2 changes: 2 additions & 0 deletions src/META-INF/test-qsar.devellibdepends
@@ -0,0 +1,2 @@
junit.jar

1 change: 1 addition & 0 deletions src/META-INF/test-qsar.libdepends
@@ -0,0 +1 @@
vecmath1.2-1.14.jar
7 changes: 0 additions & 7 deletions src/org/openscience/cdk/test/MextraTests.java
Expand Up @@ -56,8 +56,6 @@
import org.openscience.cdk.test.layout.TemplateHandlerTest;
import org.openscience.cdk.test.libio.openbabel.OpenBabelConvertTest;
import org.openscience.cdk.test.modeling.builder3d.ModelBuilder3dTest;
import org.openscience.cdk.test.qsar.descriptors.QSARDescriptorTests;
import org.openscience.cdk.test.qsar.model.QSARRModelTests;
import org.openscience.cdk.test.ringsearch.RingSearchTest;
import org.openscience.cdk.test.similarity.TanimotoTest;
import org.openscience.cdk.test.structgen.RandomStructureGeneratorTest;
Expand Down Expand Up @@ -114,8 +112,6 @@ public static Test suite( )
// from cdk.test.math
// from cdk.test.modeling
suite.addTest(ModelBuilder3dTest.suite());
// from cdk.test.qsar
suite.addTest(QSARDescriptorTests.suite());
// from cdk.test.ringsearch
suite.addTest(RingSearchTest.suite());
// from cdk.test.similarity
Expand All @@ -138,9 +134,6 @@ public static Test suite( )
System.out.println("Could not load the IUPAC Parser test: " + exception.getMessage());
}

// from cdk.test.qsar.model
suite.addTest(QSARRModelTests.suite());

//from cdk.test.applications.jchempaint.undoredo
suite.addTest(ConvertToPseudoAtomEditTest.suite());
suite.addTest(ConvertToRadicalEditTest.suite());
Expand Down
62 changes: 62 additions & 0 deletions src/org/openscience/cdk/test/MqsarTests.java
@@ -0,0 +1,62 @@
/* $RCSfile$
* $Author: egonw $
* $Date: 2006-04-21 10:59:31 +0200 (Fr, 21 Apr 2006) $
* $Revision: 6067 $
*
* Copyright (C) 1997-2006 The Chemistry Development Kit (CDK) project
*
* Contact: cdk-devel@lists.sourceforge.net
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/

package org.openscience.cdk.test;

import junit.framework.Test;
import junit.framework.TestSuite;

import org.openscience.cdk.test.qsar.descriptors.QSARDescriptorTests;
import org.openscience.cdk.test.qsar.model.QSARRModelTests;

/**
* TestSuite that runs all the sample tests.
*
* @cdk.module test-qsar
* @cdk.depends log4j.jar
* @cdk.depends junit.jar
*/
public class MqsarTests {

public static void main(String[] args)
{
junit.textui.TestRunner.run(suite());
}
public static Test suite( )
{
TestSuite suite= new TestSuite("All CDK Tests");

// Individual Tests

// from cdk.test.qsar
suite.addTest(QSARDescriptorTests.suite());

// from cdk.test.qsar.model
suite.addTest(QSARRModelTests.suite());


return suite;
}

}
14 changes: 0 additions & 14 deletions src/org/openscience/cdk/test/MreactionTests.java
Expand Up @@ -57,20 +57,6 @@ public static Test suite() {

// make sure to check it agains src/test-reaction.files
// before each release!
suite.addTest(ReactionBalancerTest.suite());
suite.addTest(DisplacementChargeFromAcceptorReactionTest.suite());
suite.addTest(DisplacementChargeFromDonorReactionTest.suite());
suite.addTest(ElectronImpactNBEReactionTest.suite());
suite.addTest(ElectronImpactPDBReactionTest.suite());
suite.addTest(RearrangementAnion1ReactionTest.suite());
suite.addTest(RearrangementAnion2ReactionTest.suite());
suite.addTest(RearrangementAnion3ReactionTest.suite());
suite.addTest(RearrangementCation1ReactionTest.suite());
suite.addTest(RearrangementCation2ReactionTest.suite());
suite.addTest(RearrangementCation3ReactionTest.suite());
suite.addTest(RearrangementRadical1ReactionTest.suite());
suite.addTest(RearrangementRadical2ReactionTest.suite());
suite.addTest(RearrangementRadical3ReactionTest.suite());
suite.addTest(ReactionTypeTest.suite());

return suite;
Expand Down
Expand Up @@ -86,7 +86,7 @@ public void testAssignGasteigerMarsiliPartialCharges(){
peoe.assignGasteigerMarsiliSigmaPartialCharges(mol, true);
for (int i=0;i<mol.getAtomCount();i++){
//System.out.println("Charge for atom:"+i+" S:"+mol.getAtomAt(i).getSymbol()+" Charge:"+mol.getAtomAt(i).getCharge());
assertEquals(testResult[i],mol.getAtomAt(i).getCharge(),0.00001);
assertEquals(testResult[i],mol.getAtomAt(i).getCharge(),0.01);
}

} catch (Exception exc)
Expand Down
Expand Up @@ -33,7 +33,7 @@
/**
* TestSuite that runs all tests for the DescriptorEngine.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/
public class DescriptorEngineTest extends CDKTestCase {

Expand Down
Expand Up @@ -34,7 +34,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class QSARDescriptorTests {
Expand Down
Expand Up @@ -36,7 +36,7 @@
/**
* TestSuite that runs a test for the AtomCountDescriptor.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class AtomCountDescriptorTest extends CDKTestCase {
Expand Down
Expand Up @@ -36,7 +36,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class AtomDegreeDescriptorTest extends CDKTestCase {
Expand Down
Expand Up @@ -38,7 +38,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class AtomHybridizationDescriptorTest extends CDKTestCase {
Expand Down
Expand Up @@ -40,7 +40,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class AtomHybridizationVSEPRDescriptorTest extends CDKTestCase {
Expand Down
Expand Up @@ -36,7 +36,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class AtomValenceDescriptorTest extends CDKTestCase {
Expand Down
Expand Up @@ -36,7 +36,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class BondsToAtomDescriptorTest extends CDKTestCase {
Expand Down
Expand Up @@ -38,7 +38,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class DistanceToAtomDescriptorTest extends CDKTestCase {
Expand Down
Expand Up @@ -37,7 +37,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class EffectiveAtomPolarizabilityDescriptorTest extends CDKTestCase {
Expand Down
Expand Up @@ -36,7 +36,7 @@
import javax.vecmath.Point3d;

/**
* @cdk.module test-extra
* @cdk.module test-qsar
*/
public class InductiveAtomicHardnessDescriptorTest extends CDKTestCase {

Expand Down
Expand Up @@ -36,7 +36,7 @@
import javax.vecmath.Point3d;

/**
* @cdk.module test-extra
* @cdk.module test-qsar
*/
public class InductiveAtomicSoftnessDescriptorTest extends CDKTestCase {

Expand Down
Expand Up @@ -37,7 +37,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class IsProtonInAromaticSystemDescriptorTest extends CDKTestCase {
Expand Down
Expand Up @@ -38,7 +38,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class IsProtonInConjugatedPiSystemDescriptorTest extends CDKTestCase {
Expand Down
Expand Up @@ -39,7 +39,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/
public class PartialPiChargeDescriptorTest extends CDKTestCase {
/**
Expand Down
Expand Up @@ -38,7 +38,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/
public class PartialSigmaChargeDescriptorTest extends CDKTestCase {
/**
Expand Down
Expand Up @@ -38,7 +38,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/
public class PartialTotalChargeDescriptorTest extends CDKTestCase {
/**
Expand Down
Expand Up @@ -36,7 +36,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class PeriodicTablePositionDescriptorTest extends CDKTestCase {
Expand Down
Expand Up @@ -38,7 +38,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class PiContactDetectionDescriptorTest extends CDKTestCase {
Expand Down
Expand Up @@ -35,7 +35,7 @@
import org.openscience.cdk.tools.HydrogenAdder;

/**
* @cdk.module test-extra
* @cdk.module test-qsar
*/
public class ProtonTotalPartialChargeDescriptorTest extends CDKTestCase {

Expand Down
Expand Up @@ -40,7 +40,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class RDFProtonDescriptorTest extends CDKTestCase {
Expand Down
Expand Up @@ -37,7 +37,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class SigmaElectronegativityDescriptorTest extends CDKTestCase {
Expand Down
Expand Up @@ -34,7 +34,7 @@
import org.openscience.cdk.test.CDKTestCase;

/**
* @cdk.module test-extra
* @cdk.module test-qsar
*/
public class VdWRadiusDescriptorTest extends CDKTestCase {

Expand Down
Expand Up @@ -36,7 +36,7 @@
/**
* TestSuite that runs a test for the AtomCountDescriptor.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class WeightDescriptorTest extends CDKTestCase {
Expand Down
Expand Up @@ -36,7 +36,7 @@
/**
* TestSuite that runs all QSAR tests.
*
* @cdk.module test-extra
* @cdk.module test-qsar
*/

public class BondCountDescriptorTest extends CDKTestCase {
Expand Down

0 comments on commit 1d5576d

Please sign in to comment.