Skip to content

Commit

Permalink
Throw to debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnbroad committed Sep 15, 2022
1 parent 74382f8 commit 11dd0aa
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,16 @@ public void testValidDataModesSingleSample(final String outputPrefix,
final File denoisedCopyRatiosFile,
final File allelicCountsFile,
final File normalAllelicCountsFile) {
System.err.println("CopyNumberTestUtils Version Test: " + CopyNumberTestUtils.COPY_TEST_UTILS_VERSION);
System.err.println("Implementation Version: " + this.getClass().getPackage().getImplementationVersion());
System.err.println("Packages:");
this.getClass().getClassLoader().getUnnamedModule().getPackages().stream().forEach(p -> System.err.println(p));
System.err.println("End Packages:");
if (true) {
final String s = String.format(
this.getClass().getClassLoader().getUnnamedModule().getPackages().stream().collect(Collectors.joining("\n")));
throw new IllegalArgumentException(
"CopyNumberTestUtils Version Test: "
+ CopyNumberTestUtils.COPY_TEST_UTILS_VERSION
+ "Implementation Version: "
+ this.getClass().getPackage().getImplementationVersion() +
"\n" + s);
}

final File outputDir = UPDATE_EXACT_MATCH_EXPECTED_OUTPUTS ? EXACT_MATCH_EXPECTED_SUB_DIR : createTempDir("testDir");
final ArgumentsBuilder argsBuilder = buildArgsBuilderSingleSample(
Expand Down

0 comments on commit 11dd0aa

Please sign in to comment.