Skip to content

Commit

Permalink
Improve failure message in VariantContextTestUtils (#8725)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbergelson authored Mar 11, 2024
1 parent c3599a0 commit 9af1be3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public static void assertGenotypesAreEqual(final Genotype actual, final Genotype

public static void assertGenotypesAreEqual(final Genotype actual, final Genotype expected, final List<String> extendedAttributesToIgnore) {
Assert.assertEquals(actual.getSampleName(), expected.getSampleName(), "Genotype names");
Assert.assertTrue(CollectionUtils.isEqualCollection(actual.getAlleles(), expected.getAlleles()), "Genotype alleles");
Assert.assertTrue(CollectionUtils.isEqualCollection(actual.getAlleles(), expected.getAlleles()), "Genotype alleles: " + actual.getAlleles() + " != " + expected.getAlleles());
Assert.assertEquals(actual.getGenotypeString(false), expected.getGenotypeString(false), "Genotype string");
Assert.assertEquals(actual.getType(), expected.getType(), "Genotype type");

Expand Down

0 comments on commit 9af1be3

Please sign in to comment.