Permalink
Browse files

Extend the MolecularDescriptorTest

Signed-off-by: Rajarshi  Guha <rajarshi.guha@gmail.com>
  • Loading branch information...
1 parent 4601c4b commit ac02901d7b4845be404b381be38592979a1a34fd @egonw egonw committed with rajarshi Jun 22, 2011
View
11 src/test/org/openscience/cdk/qsar/descriptors/protein/TaeAminoAcidDescriptorTest.java
@@ -25,14 +25,14 @@
package org.openscience.cdk.qsar.descriptors.protein;
import org.junit.Assert;
+import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
-import org.openscience.cdk.BioPolymer;
-import org.openscience.cdk.CDKTestCase;
import org.openscience.cdk.exception.CDKException;
import org.openscience.cdk.interfaces.IBioPolymer;
import org.openscience.cdk.qsar.DescriptorValue;
import org.openscience.cdk.qsar.IMolecularDescriptor;
+import org.openscience.cdk.qsar.descriptors.molecular.MolecularDescriptorTest;
import org.openscience.cdk.qsar.result.DoubleArrayResult;
import org.openscience.cdk.tools.ProteinBuilderTool;
@@ -42,14 +42,19 @@
* @cdk.module test-qsarprotein
*
*/
-public class TaeAminoAcidDescriptorTest extends CDKTestCase {
+public class TaeAminoAcidDescriptorTest extends MolecularDescriptorTest {
private static IMolecularDescriptor descriptor;
@BeforeClass public static void setUp() {
descriptor = new TaeAminoAcidDescriptor();
}
+ @Before
+ public void setDescriptor() throws Exception {
+ super.setDescriptor(TaeAminoAcidDescriptor.class);
+ }
+
@Test public void testTaeAminoAcidDescriptor() throws ClassNotFoundException, CDKException, Exception {
IBioPolymer pepseq = ProteinBuilderTool.createProtein("ACDEFGH");
DescriptorValue result = descriptor.calculate(pepseq);

0 comments on commit ac02901

Please sign in to comment.