Skip to content

Commit

Permalink
More human readable test labels
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Dec 27, 2024
1 parent 00b9c43 commit 4e4a627
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public static List<IAssertion> PubChemSubstanceIDsNotNumbers(SPARQLHelper helper
}

public static List<IAssertion> 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<IAssertion> assertions = new ArrayList<>();
String sparql = ResourceHelper.resourceAsString("metabolite/tooManyInChIKeys.rq");
StringMatrix table = SPARQLHelper.classicify(helper.sparql(sparql), "examplePathway");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public static List<IAssertion> chebiWithoutMapping(SPARQLHelper helper, String f
}

public static List<IAssertion> 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<IAssertion> assertions = new ArrayList<>();
String sparql = ResourceHelper.resourceAsString("missing/wikidata/metaboliteKEGG.rq");
StringMatrix table = SPARQLHelper.classicify(helper.sparql(sparql), "homepage");
Expand All @@ -206,7 +206,7 @@ public static List<IAssertion> keggWithoutMapping(SPARQLHelper helper) throws Ex
}

public static List<IAssertion> 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<IAssertion> assertions = new ArrayList<>();
String sparql = ResourceHelper.resourceAsString("missing/wikidata/metabolitePubChemCID.rq");
StringMatrix table = SPARQLHelper.classicify(helper.sparql(sparql), "homepage");
Expand All @@ -225,7 +225,7 @@ public static List<IAssertion> pubchemCIDWithoutMapping(SPARQLHelper helper) thr
}

public static List<IAssertion> 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<IAssertion> assertions = new ArrayList<>();
String sparql = ResourceHelper.resourceAsString("missing/wikidata/metaboliteHMDB.rq");
StringMatrix table = SPARQLHelper.classicify(helper.sparql(sparql), "homepage");
Expand All @@ -244,7 +244,7 @@ public static List<IAssertion> hmdbWithoutMapping(SPARQLHelper helper) throws Ex
}

public static List<IAssertion> 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<IAssertion> assertions = new ArrayList<>();
String sparql = ResourceHelper.resourceAsString("missing/wikidata/metaboliteInChIKey.rq");
StringMatrix table = helper.sparql(sparql);
Expand All @@ -262,7 +262,7 @@ public static List<IAssertion> inchikeyWithoutMapping(SPARQLHelper helper) throw
}

public static List<IAssertion> 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<IAssertion> assertions = new ArrayList<>();
String sparql = ResourceHelper.resourceAsString("missing/wikidata/metaboliteCAS.rq");
StringMatrix table = SPARQLHelper.classicify(helper.sparql(sparql), "homepage");
Expand Down Expand Up @@ -386,7 +386,7 @@ public static List<IAssertion> wikidataIdentifiersWrong(SPARQLHelper helper, Str
}

public static List<IAssertion> 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<IAssertion> assertions = new ArrayList<>();
String sparql = ResourceHelper.resourceAsString("missing/wikidata/metaboliteChemspider.rq");
StringMatrix table = SPARQLHelper.classicify(helper.sparql(sparql), "homepage");
Expand Down

0 comments on commit 4e4a627

Please sign in to comment.