From 79997a4e04124b572fcfc970e293d09328e4ef88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20T=C3=A1rraga=20Gim=C3=A9nez?= Date: Wed, 20 Sep 2023 17:03:59 +0200 Subject: [PATCH] test: sort functional score list for test variant annotation comparison, #TASK-5025 --- .../org/opencb/cellbase/client/rest/VariantClientTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cellbase-client/src/test/java/org/opencb/cellbase/client/rest/VariantClientTest.java b/cellbase-client/src/test/java/org/opencb/cellbase/client/rest/VariantClientTest.java index 867d32ffd..8faa97dc2 100644 --- a/cellbase-client/src/test/java/org/opencb/cellbase/client/rest/VariantClientTest.java +++ b/cellbase-client/src/test/java/org/opencb/cellbase/client/rest/VariantClientTest.java @@ -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; @@ -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