Skip to content

Commit

Permalink
Updated tests due to Paxtools' Resolver/Normalizer updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorRodchenkov committed Apr 23, 2024
1 parent a6e78b0 commit 705203e
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void getDirectChildren() {
Set<String> dc = cvFactory.getDirectChildren("urn:miriam:go:GO%3A0005654");
assertAll(
() -> assertFalse(dc.isEmpty()),
() -> assertTrue(dc.contains("bioregistry.io/go:0044451"))
() -> assertTrue(dc.contains("http://bioregistry.io/go:0044451"))
);
}

Expand All @@ -62,9 +62,9 @@ public void getAllChildren() {
Set<String> dc = cvFactory.getAllChildren("identifiers.org/GO:0005654");
assertAll(
() -> assertFalse(dc.isEmpty()),
() -> assertTrue(dc.contains("bioregistry.io/go:0044451")),
() -> assertTrue(dc.contains("bioregistry.io/go:0071821")),
() -> assertTrue(dc.contains("bioregistry.io/go:0070847"))
() -> assertTrue(dc.contains("http://bioregistry.io/go:0044451")),
() -> assertTrue(dc.contains("http://bioregistry.io/go:0071821")),
() -> assertTrue(dc.contains("http://bioregistry.io/go:0070847"))
);
}

Expand All @@ -73,7 +73,7 @@ public void getDirectParents() {
Set<String> dc = cvFactory.getDirectParents("urn:miriam:go:GO%3A0005654");
assertAll(
() -> assertFalse(dc.isEmpty()),
() -> assertTrue(dc.contains("bioregistry.io/go:0031981"))
() -> assertTrue(dc.contains("http://bioregistry.io/go:0031981"))
);
}

Expand All @@ -82,9 +82,9 @@ public void getAllParents() {
Set<String> dc = cvFactory.getAllParents("identifiers.org/go/GO:0005654");
assertAll(
() -> assertFalse(dc.isEmpty()),
() -> assertTrue(dc.contains("bioregistry.io/go:0031981")),
() -> assertTrue(dc.contains("bioregistry.io/go:0044428")),
() -> assertTrue(dc.contains("bioregistry.io/go:0044422"))
() -> assertTrue(dc.contains("http://bioregistry.io/go:0031981")),
() -> assertTrue(dc.contains("http://bioregistry.io/go:0044428")),
() -> assertTrue(dc.contains("http://bioregistry.io/go:0044422"))
);
}

Expand All @@ -94,7 +94,7 @@ public void getAllParents() {
"identifiers.org/go/GO:0005737",
"urn:miriam:obo.go:GO%3A0005737",
"https://identifiers.org/GO:0005737",
"bioregistry.io/go:0005737"
"http://bioregistry.io/go:0005737"
})
public void buildCellularLocationVocabularyWhenIdOk(String uri) {
CellularLocationVocabulary cv = cvFactory.getControlledVocabulary(uri
Expand All @@ -116,7 +116,7 @@ public void getObject2() {
@Test
public void escapeChars() {
ControlledVocabulary cv = cvFactory.getControlledVocabulary(
"bioregistry.io/mod:00048",SequenceModificationVocabulary.class,"");
"http://bioregistry.io/mod:00048",SequenceModificationVocabulary.class,"");
assertAll(
() -> assertTrue(cv instanceof SequenceModificationVocabulary),
() -> assertTrue(cv.getTerm().contains("O4'-phospho-L-tyrosine")) // apostrophe
Expand Down

0 comments on commit 705203e

Please sign in to comment.