Ignore:
Timestamp:
Nov 3, 2010, 4:27:25 PM (11 years ago)
Author:
business@…
Message:

updated ontology tests and deleted tests for REST methods that should be removed, updated ontoCAT to 0.9.5.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/integration/gscf/OntologyTests.groovy

    r959 r1061  
    193193
    194194        public void testAddBioPortalOntology() {
    195                 def ontology = dbnp.data.Ontology.getBioPortalOntology("1005")                 
     195                // Add a new ontology
     196                def ontology = dbnp.data.Ontology.getBioPortalOntology("1031")
    196197                // Validate and save ontology
    197198                if (!ontology.validate()) { ontology.errors.each { println it} }
    198199                assert ontology.validate()
    199200                assert ontology.save(flush: true)
    200                 assert Ontology.findByNcboId(1005).name.equals(ontology.name)
     201                assert Ontology.findByNcboId(1031).name.equals(ontology.name)
     202
     203                // Make sure that it is not possible to add an ontology twice
     204                def addAgain = dbnp.data.Ontology.getBioPortalOntology("1031")
     205                assert !addAgain.validate()
    201206        }
    202207}
Note: See TracChangeset for help on using the changeset viewer.