Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Extend the MolecularDescriptorTest

Signed-off-by: Rajarshi  Guha <rajarshi.guha@gmail.com>
  • Loading branch information...
commit ac02901d7b4845be404b381be38592979a1a34fd 1 parent 4601c4b
Egon Willighagen authored rajarshi committed
11  src/test/org/openscience/cdk/qsar/descriptors/protein/TaeAminoAcidDescriptorTest.java
@@ -25,14 +25,14 @@
25 25
 package org.openscience.cdk.qsar.descriptors.protein;
26 26
 
27 27
 import org.junit.Assert;
  28
+import org.junit.Before;
28 29
 import org.junit.BeforeClass;
29 30
 import org.junit.Test;
30  
-import org.openscience.cdk.BioPolymer;
31  
-import org.openscience.cdk.CDKTestCase;
32 31
 import org.openscience.cdk.exception.CDKException;
33 32
 import org.openscience.cdk.interfaces.IBioPolymer;
34 33
 import org.openscience.cdk.qsar.DescriptorValue;
35 34
 import org.openscience.cdk.qsar.IMolecularDescriptor;
  35
+import org.openscience.cdk.qsar.descriptors.molecular.MolecularDescriptorTest;
36 36
 import org.openscience.cdk.qsar.result.DoubleArrayResult;
37 37
 import org.openscience.cdk.tools.ProteinBuilderTool;
38 38
 
@@ -42,7 +42,7 @@
42 42
  * @cdk.module test-qsarprotein
43 43
  * 
44 44
  */
45  
-public class TaeAminoAcidDescriptorTest extends CDKTestCase {
  45
+public class TaeAminoAcidDescriptorTest extends MolecularDescriptorTest {
46 46
 
47 47
 	private static IMolecularDescriptor descriptor;
48 48
 	
@@ -50,6 +50,11 @@
50 50
     	descriptor = new TaeAminoAcidDescriptor();
51 51
     }
52 52
 
  53
+    @Before
  54
+    public void setDescriptor() throws Exception {
  55
+        super.setDescriptor(TaeAminoAcidDescriptor.class);
  56
+    }
  57
+
53 58
     @Test public void testTaeAminoAcidDescriptor() throws ClassNotFoundException, CDKException, Exception {
54 59
         IBioPolymer pepseq = ProteinBuilderTool.createProtein("ACDEFGH");
55 60
         DescriptorValue result = descriptor.calculate(pepseq);

0 notes on commit ac02901

Please sign in to comment.
Something went wrong with that request. Please try again.