Skip to content

Commit

Permalink
test: sort functional score list for test variant annotation comparis…
Browse files Browse the repository at this point in the history
…on, #TASK-5025
  • Loading branch information
jtarraga committed Sep 20, 2023
1 parent a58072c commit 79997a4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.opencb.cellbase.client.rest;

import org.apache.avro.specific.SpecificRecordBase;
import org.apache.commons.collections4.CollectionUtils;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.params.ParameterizedTest;
Expand Down Expand Up @@ -104,6 +105,10 @@ private void orderVariantAnnotation(VariantAnnotation va) {
c.getProteinVariantAnnotation().getFeatures().sort(Comparator.comparing(SpecificRecordBase::hashCode));
}
});

if (CollectionUtils.isNotEmpty(va.getFunctionalScore())) {
va.getFunctionalScore().sort(Comparator.comparing(SpecificRecordBase::hashCode));
}
}

// @Test
Expand Down

0 comments on commit 79997a4

Please sign in to comment.