Skip to content

Commit

Permalink
Minor changes to Tests and Spring 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ypriverol committed Oct 6, 2023
1 parent d123103 commit e309c73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>5.3.29</version>
<version>6.0.12</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>5.3.29</version>
<version>6.0.12</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void testGetTermChildrenByOBOIdMI() throws Exception {
public void testGetTermParentsByOBOIdGo() throws Exception {
List<Term> children = olsClient.getTermChildren(new Identifier("GO:0140110", Identifier.IdentifierType.OBO), "GO", 1);
logger.debug(children.toString());
Assert.assertTrue(contains(children, new Identifier("GO:0034246", Identifier.IdentifierType.OBO)));
Assert.assertTrue(contains(children, new Identifier("GO:0043856", Identifier.IdentifierType.OBO)));
}

@Test
Expand Down Expand Up @@ -132,7 +132,7 @@ public void testGetTermsByAnnotationData() throws Exception {
public void testGetTermParentsByOBOId() throws Exception {
List<Term> parents = olsClient.getTermParents(new Identifier("GO:0034246", Identifier.IdentifierType.OBO), "GO", 1);
logger.debug(parents.toString());
Assert.assertTrue(contains(parents, new Identifier("GO:0140110", Identifier.IdentifierType.OBO)));
Assert.assertTrue(contains(parents, new Identifier("GO:0003700", Identifier.IdentifierType.OBO)));
}

@Test
Expand All @@ -150,14 +150,14 @@ public void testGetTermParentsByOBOIdMI() throws Exception {
public void testGetTermParentsByShortForm() throws Exception {
List<Term> parents = olsClient.getTermParents(new Identifier("GO_0034246", Identifier.IdentifierType.OWL), "GO", 1);
logger.debug(parents.toString());
Assert.assertTrue(contains(parents, new Identifier("GO_0140110", Identifier.IdentifierType.OWL)));
Assert.assertTrue(contains(parents, new Identifier("GO_0006390", Identifier.IdentifierType.OWL)));
}

@Test
public void testGetTermParentsByIrIId() throws Exception {
List<Term> parents = olsClient.getTermParents(new Identifier("http://purl.obolibrary.org/obo/GO_0034246", Identifier.IdentifierType.IRI), "GO", 1);
logger.debug(parents.toString());
Assert.assertTrue(contains(parents, new Identifier("http://purl.obolibrary.org/obo/GO_0140110", Identifier.IdentifierType.IRI)));
Assert.assertTrue(contains(parents, new Identifier("http://purl.obolibrary.org/obo/GO_0003700", Identifier.IdentifierType.IRI)));
}

@Test
Expand Down Expand Up @@ -244,7 +244,7 @@ public void testGetOntologyFromFilePath(){
// Assert.assertEquals(ontology.getNamespace(),"eol");
// ontology = olsClient.getOntologyFromFilePath(URI.create("http://www.bio.ntnu.no/ontology/GeXO/gexo.owl"));
// Assert.assertEquals(ontology.getNamespace(),"gexo");
ontology = olsClient.getOntologyFromFilePath(URI.create("http://purl.obolibrary.org/obo/go.owl"));
ontology = olsClient.getOntologyFromFilePath(URI.create("http://purl.obolibrary.org/obo/go/extensions/go-plus.owl"));
Assert.assertEquals(ontology.getNamespace(),"go");
}

Expand Down

0 comments on commit e309c73

Please sign in to comment.