Skip to content

Commit 167750e

Browse files
committed
Move long tests to the intergationtest package
Long tests for Subunit clustering, quaternary symmetry detection and quaternary structure alignment with some real structure examples have been moved to the integrationtest module, so that they can be easily skipped with a configuration option.
1 parent 01287d7 commit 167750e

3 files changed

Lines changed: 18 additions & 10 deletions

File tree

biojava-structure/src/test/java/org/biojava/nbio/structure/align/quaternary/TestQsAlign.java renamed to biojava-integrationtest/src/test/java/org/biojava/nbio/structure/test/align/qsalign/TestQsAlignExamples.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.biojava.nbio.structure.align.quaternary;
1+
package org.biojava.nbio.structure.test.align.qsalign;
22

33
import static org.junit.Assert.*;
44

@@ -7,6 +7,10 @@
77
import org.biojava.nbio.structure.Structure;
88
import org.biojava.nbio.structure.StructureException;
99
import org.biojava.nbio.structure.StructureIO;
10+
import org.biojava.nbio.structure.align.quaternary.QsAlign;
11+
import org.biojava.nbio.structure.align.quaternary.QsAlignParameters;
12+
import org.biojava.nbio.structure.align.quaternary.QsAlignResult;
13+
import org.biojava.nbio.structure.align.quaternary.QsRelation;
1014
import org.biojava.nbio.structure.cluster.SubunitClustererParameters;
1115
import org.junit.Test;
1216

@@ -18,7 +22,7 @@
1822
* @since 5.0.0
1923
*
2024
*/
21-
public class TestQsAlign {
25+
public class TestQsAlignExamples {
2226

2327
/**
2428
* Identity: test hemoglobin (4HHB) against itself.

biojava-structure/src/test/java/org/biojava/nbio/structure/cluster/TestSubunitClusterer.java renamed to biojava-integrationtest/src/test/java/org/biojava/nbio/structure/test/cluster/TestSubunitClustererExamples.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* http://www.biojava.org/
1919
*
2020
*/
21-
package org.biojava.nbio.structure.cluster;
21+
package org.biojava.nbio.structure.test.cluster;
2222

2323
import static org.junit.Assert.*;
2424

@@ -28,6 +28,10 @@
2828
import org.biojava.nbio.structure.Structure;
2929
import org.biojava.nbio.structure.StructureException;
3030
import org.biojava.nbio.structure.StructureIO;
31+
import org.biojava.nbio.structure.cluster.SubunitCluster;
32+
import org.biojava.nbio.structure.cluster.SubunitClusterer;
33+
import org.biojava.nbio.structure.cluster.SubunitClustererMethod;
34+
import org.biojava.nbio.structure.cluster.SubunitClustererParameters;
3135
import org.junit.Test;
3236

3337
/**
@@ -37,7 +41,7 @@
3741
* @author Aleix Lafita
3842
*
3943
*/
40-
public class TestSubunitClusterer {
44+
public class TestSubunitClustererExamples {
4145

4246
/**
4347
* Test modified residues: 1HIV

biojava-structure/src/test/java/org/biojava/nbio/structure/symmetry/core/TestQuatSymmetryDetector.java renamed to biojava-integrationtest/src/test/java/org/biojava/nbio/structure/test/symmetry/TestQuatSymmetryDetectorExamples.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* http://www.biojava.org/
1919
*
2020
*/
21-
package org.biojava.nbio.structure.symmetry.core;
21+
package org.biojava.nbio.structure.test.symmetry;
2222

2323
import static org.junit.Assert.*;
2424

@@ -37,14 +37,14 @@
3737
import org.junit.Test;
3838

3939
/**
40-
* Test the algorithm for symmetry detection on a variety of structures with
41-
* different symmetries.
40+
* Test the {@link QuatSymmetryDetector} algorithm for symmetry detection on a
41+
* variety of structures with different symmetries.
4242
*
4343
* @author Peter Rose
4444
* @author Aleix Lafita
4545
*
4646
*/
47-
public class TestQuatSymmetryDetector {
47+
public class TestQuatSymmetryDetectorExamples {
4848

4949
/**
5050
* An NMR multi-model entry: 1B4C
@@ -56,12 +56,12 @@ public class TestQuatSymmetryDetector {
5656
public void testNMR() throws IOException, StructureException {
5757

5858
Structure pdb = StructureIO.getStructure("BIO:1b4c:1");
59-
59+
6060
SubunitClustererParameters clusterParams = new SubunitClustererParameters();
6161
QuatSymmetryParameters symmParams = new QuatSymmetryParameters();
6262
QuatSymmetryResults symmetry = QuatSymmetryDetector.calcGlobalSymmetry(
6363
pdb, symmParams, clusterParams);
64-
64+
6565
// C2 symmetry non pseudosymmetric
6666
assertEquals("C2", symmetry.getSymmetry());
6767
assertEquals("A2", symmetry.getStoichiometry());

0 commit comments

Comments
 (0)