org.LexGrid.LexBIG.Impl.function.query
Class TestHierarchyAPI

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.LexGrid.LexBIG.Impl.function.LexBIGServiceTestCase
              extended by org.LexGrid.LexBIG.Impl.function.query.TestHierarchyAPI
All Implemented Interfaces:
junit.framework.Test

public class TestHierarchyAPI
extends LexBIGServiceTestCase

This testcase checks that the hierarchy api works as desired.

Author:
Pradip Kanjamala

Field Summary
 
Fields inherited from class org.LexGrid.LexBIG.Impl.function.LexBIGServiceTestCase
AIR_SCHEME, AIR_URN, AIR_VERSION, AMINOACID_SCHEME, AMINOACID_VERSION, AUTO_EXPORT_SCHEME, AUTO_EXPORT_URI, AUTO_EXPORT_VERSION, AUTO_SCHEME, AUTO_URN, AUTO_VERSION, CAMERA_SCHEME_MANIFEST, CAMERA_SCHEME_MANIFEST_URN, CAMERA_SCHEME_MANIFEST_VERSION, CELL_SCHEME, CELL_URN, CELL_VERSION, HL7_SCHEME, HL7_VERSION, MAPPING_SCHEME_URI, MAPPING_SCHEME_VERSION, META_SCHEME, META_SCHEME_MANIFEST, META_SCHEME_MANIFEST_URN, META_SCHEME_MANIFEST_VERSION, META_URN, META_VERSION, OVARIANMASS_SCHEME_URN, OVARIANMASS_SCHEME_VERSION, PARTS_NAMESPACE, PARTS_SCHEME, PARTS_URN, PARTS_VERSION, PIZZA_SCHEME_NAME, PIZZA_SCHEME_URI, PIZZA_SCHEME_VERSION, SAMPLE_META_VERSION, THES_SCHEME, THES_URN, THES_VERSION
 
Constructor Summary
TestHierarchyAPI()
           
 
Method Summary
protected  java.lang.String getTestID()
          To be implemented by each descendant testcase.
 void testFindRootConceptGenericOwl()
          Test getting the root concept of when using the generic owl loader
 void testFindRootConceptOBO()
          Test getting the root concept of an OBO ontology
 void testFindRootConceptUMLS()
          Test getting the root concept of an OBO ontology
 void testGetCountForLongConceptList()
          Test getting the previous and next level count for a very list of concepts
 void testGetCountForOBOConceptList()
          Test getting the previous and next level count for a list of concepts
 void testGetCountForOWLConcept()
          Test getting the previous and next level count for a OWL concept
 void testGetCountForUMLSConcept()
          Test getting the previous and next level count for a UMLS concept
 void testGetCountNextForNonExistentOBOConcept()
          Test getting the next level count for a non existent concept
 void testGetCountNextForOBOConcept()
          Test getting the next level count for a concept
 void testGetCountPrevForOBOConcept()
          Test getting the previous level count for a concept
 void testGetHierarchyPathToRootLexGridXMLWithCycle()
          Test getting the next level count for a concept
 void testGetHierarchyPathToRootOBO()
          Test getting the next level count for a concept
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestHierarchyAPI

public TestHierarchyAPI()
Method Detail

getTestID

protected java.lang.String getTestID()
Description copied from class: LexBIGServiceTestCase
To be implemented by each descendant testcase.

Specified by:
getTestID in class LexBIGServiceTestCase
Returns:
String

testFindRootConceptOBO

public void testFindRootConceptOBO()
                            throws java.lang.InterruptedException,
                                   LBException
Test getting the root concept of an OBO ontology

Throws:
java.lang.InterruptedException
LBException

testFindRootConceptUMLS

public void testFindRootConceptUMLS()
                             throws java.lang.InterruptedException,
                                    LBException
Test getting the root concept of an OBO ontology

Throws:
java.lang.InterruptedException
LBException

testFindRootConceptGenericOwl

public void testFindRootConceptGenericOwl()
                                   throws java.lang.InterruptedException,
                                          LBException
Test getting the root concept of when using the generic owl loader

Throws:
java.lang.InterruptedException
LBException

testGetHierarchyPathToRootOBO

public void testGetHierarchyPathToRootOBO()
                                   throws java.lang.InterruptedException,
                                          LBException
Test getting the next level count for a concept

Throws:
java.lang.InterruptedException
LBException

testGetHierarchyPathToRootLexGridXMLWithCycle

public void testGetHierarchyPathToRootLexGridXMLWithCycle()
                                                   throws java.lang.InterruptedException,
                                                          LBException
Test getting the next level count for a concept

Throws:
java.lang.InterruptedException
LBException

testGetCountNextForOBOConcept

public void testGetCountNextForOBOConcept()
                                   throws java.lang.InterruptedException,
                                          LBException
Test getting the next level count for a concept

Throws:
java.lang.InterruptedException
LBException

testGetCountPrevForOBOConcept

public void testGetCountPrevForOBOConcept()
                                   throws java.lang.InterruptedException,
                                          LBException
Test getting the previous level count for a concept

Throws:
java.lang.InterruptedException
LBException

testGetCountNextForNonExistentOBOConcept

public void testGetCountNextForNonExistentOBOConcept()
                                              throws java.lang.InterruptedException,
                                                     LBException
Test getting the next level count for a non existent concept

Throws:
java.lang.InterruptedException
LBException

testGetCountForUMLSConcept

public void testGetCountForUMLSConcept()
                                throws java.lang.InterruptedException,
                                       LBException
Test getting the previous and next level count for a UMLS concept

Throws:
java.lang.InterruptedException
LBException

testGetCountForOWLConcept

public void testGetCountForOWLConcept()
                               throws java.lang.InterruptedException,
                                      LBException
Test getting the previous and next level count for a OWL concept

Throws:
java.lang.InterruptedException
LBException

testGetCountForOBOConceptList

public void testGetCountForOBOConceptList()
                                   throws java.lang.InterruptedException,
                                          LBException
Test getting the previous and next level count for a list of concepts

Throws:
java.lang.InterruptedException
LBException

testGetCountForLongConceptList

public void testGetCountForLongConceptList()
                                    throws java.lang.InterruptedException,
                                           LBException
Test getting the previous and next level count for a very list of concepts

Throws:
java.lang.InterruptedException
LBException

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.