From 4e4a6274b19663d5ddabb41b4c605b3aaae647c1 Mon Sep 17 00:00:00 2001 From: Egon Willighagen Date: Fri, 27 Dec 2024 10:43:58 +0100 Subject: [PATCH] More human readable test labels --- .../wikipathways/curator/tests/MetabolitesTests.java | 2 +- .../wikipathways/curator/tests/WikidataTests.java | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/nl/unimaas/bigcat/wikipathways/curator/tests/MetabolitesTests.java b/src/main/java/nl/unimaas/bigcat/wikipathways/curator/tests/MetabolitesTests.java index 8bf804a..cdd57dc 100644 --- a/src/main/java/nl/unimaas/bigcat/wikipathways/curator/tests/MetabolitesTests.java +++ b/src/main/java/nl/unimaas/bigcat/wikipathways/curator/tests/MetabolitesTests.java @@ -339,7 +339,7 @@ public static List PubChemSubstanceIDsNotNumbers(SPARQLHelper helper } public static List tooManyInChIKeys(SPARQLHelper helper, String format) throws Exception { - Test test = new Test("MetabolitesTests", "tooManyInChIKeys"); + Test test = new Test("MetabolitesTests", "tooManyInChIKeys", "Too many InChIKeys for the used identifier", true); List assertions = new ArrayList<>(); String sparql = ResourceHelper.resourceAsString("metabolite/tooManyInChIKeys.rq"); StringMatrix table = SPARQLHelper.classicify(helper.sparql(sparql), "examplePathway"); diff --git a/src/main/java/nl/unimaas/bigcat/wikipathways/curator/tests/WikidataTests.java b/src/main/java/nl/unimaas/bigcat/wikipathways/curator/tests/WikidataTests.java index e59a828..8f800f2 100644 --- a/src/main/java/nl/unimaas/bigcat/wikipathways/curator/tests/WikidataTests.java +++ b/src/main/java/nl/unimaas/bigcat/wikipathways/curator/tests/WikidataTests.java @@ -182,7 +182,7 @@ public static List chebiWithoutMapping(SPARQLHelper helper, String f } public static List keggWithoutMapping(SPARQLHelper helper) throws Exception { - Test test = new Test("WikidataTests", "keggWithoutMapping"); + Test test = new Test("WikidataTests", "keggWithoutMapping", "KEGG Compound identifier without a match in Wikidata", false); List assertions = new ArrayList<>(); String sparql = ResourceHelper.resourceAsString("missing/wikidata/metaboliteKEGG.rq"); StringMatrix table = SPARQLHelper.classicify(helper.sparql(sparql), "homepage"); @@ -206,7 +206,7 @@ public static List keggWithoutMapping(SPARQLHelper helper) throws Ex } public static List pubchemCIDWithoutMapping(SPARQLHelper helper) throws Exception { - Test test = new Test("WikidataTests", "pubchemCIDWithoutMapping"); + Test test = new Test("WikidataTests", "pubchemCIDWithoutMapping", "PubChem Compound identifier without a match in Wikidata", false); List assertions = new ArrayList<>(); String sparql = ResourceHelper.resourceAsString("missing/wikidata/metabolitePubChemCID.rq"); StringMatrix table = SPARQLHelper.classicify(helper.sparql(sparql), "homepage"); @@ -225,7 +225,7 @@ public static List pubchemCIDWithoutMapping(SPARQLHelper helper) thr } public static List hmdbWithoutMapping(SPARQLHelper helper) throws Exception { - Test test = new Test("WikidataTests", "hmdbWithoutMapping"); + Test test = new Test("WikidataTests", "hmdbWithoutMapping", "HMDB identifier without a match in Wikidata", false); List assertions = new ArrayList<>(); String sparql = ResourceHelper.resourceAsString("missing/wikidata/metaboliteHMDB.rq"); StringMatrix table = SPARQLHelper.classicify(helper.sparql(sparql), "homepage"); @@ -244,7 +244,7 @@ public static List hmdbWithoutMapping(SPARQLHelper helper) throws Ex } public static List inchikeyWithoutMapping(SPARQLHelper helper) throws Exception { - Test test = new Test("WikidataTests", "inchikeyWithoutMapping"); + Test test = new Test("WikidataTests", "inchikeyWithoutMapping", "InChIKey without a match in Wikidata", false); List assertions = new ArrayList<>(); String sparql = ResourceHelper.resourceAsString("missing/wikidata/metaboliteInChIKey.rq"); StringMatrix table = helper.sparql(sparql); @@ -262,7 +262,7 @@ public static List inchikeyWithoutMapping(SPARQLHelper helper) throw } public static List casWithoutMapping(SPARQLHelper helper) throws Exception { - Test test = new Test("WikidataTests", "casWithoutMapping"); + Test test = new Test("WikidataTests", "casWithoutMapping", "CAS registry number without a match in Wikidata", false); List assertions = new ArrayList<>(); String sparql = ResourceHelper.resourceAsString("missing/wikidata/metaboliteCAS.rq"); StringMatrix table = SPARQLHelper.classicify(helper.sparql(sparql), "homepage"); @@ -386,7 +386,7 @@ public static List wikidataIdentifiersWrong(SPARQLHelper helper, Str } public static List chemspiderCIDWithoutMapping(SPARQLHelper helper) throws Exception { - Test test = new Test("WikidataTests", "chemspiderCIDWithoutMapping"); + Test test = new Test("WikidataTests", "chemspiderCIDWithoutMapping", "ChemSpider Compound identifier without a match in Wikidata", false); List assertions = new ArrayList<>(); String sparql = ResourceHelper.resourceAsString("missing/wikidata/metaboliteChemspider.rq"); StringMatrix table = SPARQLHelper.classicify(helper.sparql(sparql), "homepage");