org.LexGrid.LexBIG.Impl.function.codednodegraph
Class BaseCodedNodeGraphTest

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.codednodegraph.BaseCodedNodeGraphTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CrossOntologyResolveTest, FilterTest, FocusTest, IntersectionTest, ResolveToListTest, RestrictToAssociationsTest, RestrictToDirectionalNamesTest, RestrictToSourceCodesTest, RestrictToTargetCodesTest, RootsTest, SearchByRelationshipTest, SortGraphTest, ToNodeListTest, UnionTest

public class BaseCodedNodeGraphTest
extends LexBIGServiceTestCase

The Class BaseCodedNodeGraphTest.

Author:
Kevin Peterson

Field Summary
protected  CodedNodeGraph cng
          The cng.
protected  LexBIGService lbs
          The lbs.
 
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
BaseCodedNodeGraphTest()
           
 
Method Summary
static boolean associatedConceptListContains(AssociatedConcept[] concepts, java.lang.String code)
          Associated concept list contains.
static boolean associationListContains(Association[] assocs, java.lang.String assoc)
          Association list contains.
protected  java.lang.String getCodingScheme()
          Gets the coding scheme.
protected  java.lang.String getTestID()
          To be implemented by each descendant testcase.
static boolean resolvedConceptListContains(ResolvedConceptReference[] concepts, java.lang.String code)
          Resolved concept list contains.
 void setUp()
           
 void testSetUp()
          Test set up.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Field Detail

cng

protected CodedNodeGraph cng
The cng.


lbs

protected LexBIGService lbs
The lbs.

Constructor Detail

BaseCodedNodeGraphTest

public BaseCodedNodeGraphTest()
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

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

getCodingScheme

protected java.lang.String getCodingScheme()
Gets the coding scheme.

Returns:
the coding scheme

testSetUp

public void testSetUp()
Test set up.


resolvedConceptListContains

public static boolean resolvedConceptListContains(ResolvedConceptReference[] concepts,
                                                  java.lang.String code)
Resolved concept list contains.

Parameters:
concepts - the concepts
code - the code
Returns:
true, if successful

associatedConceptListContains

public static boolean associatedConceptListContains(AssociatedConcept[] concepts,
                                                    java.lang.String code)
Associated concept list contains.

Parameters:
concepts - the concepts
code - the code
Returns:
true, if successful

associationListContains

public static boolean associationListContains(Association[] assocs,
                                              java.lang.String assoc)
Association list contains.

Parameters:
assocs - the assocs
assoc - the assoc
Returns:
true, if successful

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.