|
22 | 22 | import org.broadinstitute.hellbender.testutils.ArgumentsBuilder;
|
23 | 23 | import org.broadinstitute.hellbender.testutils.IntegrationTestSpec;
|
24 | 24 | import org.broadinstitute.hellbender.testutils.SamAssertionUtils;
|
| 25 | +import org.broadinstitute.hellbender.tools.spark.pipelines.PrintReadsSparkIntegrationTest; |
25 | 26 | import org.broadinstitute.hellbender.utils.Utils;
|
26 | 27 | import org.broadinstitute.hellbender.utils.gcs.BucketUtils;
|
27 | 28 | import org.broadinstitute.hellbender.utils.io.IOUtils;
|
28 | 29 | import org.broadinstitute.hellbender.utils.read.GATKRead;
|
29 | 30 | import org.testng.Assert;
|
| 31 | +import org.testng.SkipException; |
30 | 32 | import org.testng.annotations.DataProvider;
|
31 | 33 | import org.testng.annotations.Test;
|
32 | 34 |
|
@@ -74,7 +76,13 @@ public void doFileToFile(String fileIn, String extOut, String reference, boolean
|
74 | 76 | }
|
75 | 77 | }
|
76 | 78 |
|
77 |
| - public void doFileToFileUsingReferenceBundle(String fileIn, String extOut, String reference, boolean testMD5) throws Exception { |
| 79 | + public void doFileToFileUsingReferenceBundle(final String fileIn, final String extOut, final String reference, final boolean testMD5) throws Exception { |
| 80 | + // this is ugly, but we need to skip this test in Spark tools because they don't support bundles, and |
| 81 | + // if I put an override of this method in PrintReadsSparkIntegrationTest, it results in dependency injection |
| 82 | + // errors when the tests are run |
| 83 | + if (this.getClass().equals(PrintReadsSparkIntegrationTest.class)) { |
| 84 | + throw new SkipException("Bundles are not supported in Spark tools"); |
| 85 | + } |
78 | 86 | final String referenceToUse;
|
79 | 87 | if (reference != null) {
|
80 | 88 | // create the bundle, using inference to find the sibling files, then write the bundle out to a temp file
|
@@ -105,11 +113,6 @@ private void checkMD5asExpected(final File outFile) throws IOException {
|
105 | 113 | Assert.assertEquals(actualMD5, expectedMD5);
|
106 | 114 | }
|
107 | 115 |
|
108 |
| - @Test(dataProvider="testingData") |
109 |
| - public void testFileToFileWithReferenceBundle(String fileIn, String extOut, String reference) throws Exception { |
110 |
| - doFileToFileUsingReferenceBundle(fileIn, extOut, reference, false); |
111 |
| - } |
112 |
| - |
113 | 116 | @DataProvider(name="testingData")
|
114 | 117 | public Object[][] testingData() {
|
115 | 118 | return new String[][]{
|
@@ -153,7 +156,7 @@ public Object[][] testingData() {
|
153 | 156 | }
|
154 | 157 |
|
155 | 158 | @Test(dataProvider="testingData")
|
156 |
| - public void testFileToFileUsingReferenceBundle(String fileIn, String extOut, String reference) throws Exception { |
| 159 | + public void testFileToFileUsingReferenceBundle(final String fileIn, final String extOut, final String reference) throws Exception { |
157 | 160 | if (reference != null) {
|
158 | 161 | doFileToFileUsingReferenceBundle(fileIn, extOut, reference, false);
|
159 | 162 | }
|
|
0 commit comments