org.LexGrid.LexBIG.gridTests.function.query
Class TestEnumerateProperties

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by gov.nih.nci.ServiceTestCase
              extended by org.LexGrid.LexBIG.gridTests.LexBIGServiceTestCase
                  extended by org.LexGrid.LexBIG.gridTests.function.query.TestEnumerateProperties
All Implemented Interfaces:
junit.framework.Test

public class TestEnumerateProperties
extends LexBIGServiceTestCase

The Class TestEnumerateProperties.


Field Summary
 
Fields inherited from class gov.nih.nci.ServiceTestCase
DOMAIN_CONCEPT_CODE, DOMAIN_CUI, GO_CONCODE, GO_SCHEME, GO_VERSION, loincMeta, MEDDRA_CONCODE, MEDDRA_SCHEME, MEDDRA_TOKEN, MEDDRA_URN, MEDDRA_VERSION, meddraMeta, meshMeta, META_SCHEME, META_TOKEN, META_URN, META_VERSION, MGED_CONCODE, MGED_SCHEME, nciMetaVersion, NCIT_CONCODE, ncitMeta, NDF_CONCODE, serviceUrl, SNOMED_CONCODE, SNOMED_SCHEME, SNOMED_VERSION, snomedMeta, testList, THES_LOCAL, THES_LOCAL_NSDI, THES_METADATA_VERSION, THES_SCHEME, THES_TAG, THES_URN, THES_VERSION, UMLS_CONCODE, ZEBRAFISH_SCHEME, ZEBRAFISH_VERSION, ZF_CONCODE
 
Constructor Summary
TestEnumerateProperties()
           
 
Method Summary
 boolean contains(Property[] props, java.lang.String[] property)
          Test if any of the property names in the String array match a property in the Property array
protected  void enumerateProps(java.lang.String code, java.lang.String[] properties)
          Enumerate properties for the concept code.
protected  java.lang.String getTestID()
          To be implemented by each descendant testcase.
 void testEnumeratePropertiesa()
          Test enumerate propertiesa.
 void testEnumeratePropertiesb()
          Test enumerate propertiesb.
 
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

TestEnumerateProperties

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

enumerateProps

protected void enumerateProps(java.lang.String code,
                              java.lang.String[] properties)
                       throws LBException
Enumerate properties for the concept code.

Parameters:
code - the concept code
properties - the properties array
Throws:
LBException - the LB exception

contains

public boolean contains(Property[] props,
                        java.lang.String[] property)
Test if any of the property names in the String array match a property in the Property array

Parameters:
props - the array of type Property[]
property - the array of property names as String[]
Returns:
true, if successful

testEnumeratePropertiesa

public void testEnumeratePropertiesa()
                              throws LBException
Test enumerate propertiesa.

Throws:
LBException - the LB exception

testEnumeratePropertiesb

public void testEnumeratePropertiesb()
                              throws LBException
Test enumerate propertiesb.

Throws:
LBException - the LB exception

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.