org.LexGrid.LexBIG.Impl.bugs
Class GForge23103

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.bugs.GForge23103
All Implemented Interfaces:
junit.framework.Test

public class GForge23103
extends LexBIGServiceTestCase

This class should be used as a place to write JUnit tests which show a bug, and pass when the bug is fixed. LexBIG Bug #23103 - https://gforge.nci.nih.gov/tracker/index.php?func=detail&aid=23103&group_id=491&atid=1850

Author:
Kevin Peterson

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
GForge23103()
           
 
Method Summary
protected  Presentation getPreferredPresentation(Presentation[] presentations)
          Gets the preferred presentation.
protected  java.lang.String getTestID()
          To be implemented by each descendant testcase.
 void setUp()
           
protected  boolean sourceEquals(Source source, java.lang.String content, java.lang.String role, java.lang.String subRef)
          Source equals.
 void testEntityNotNull()
          Test entity not null.
 void testSourceContent()
          Test source content.
 void testSourceCount()
          Test source count.
 
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
 

Constructor Detail

GForge23103

public GForge23103()
Method Detail

setUp

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

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

testEntityNotNull

public void testEntityNotNull()
                       throws LBException
Test entity not null.

Throws:
LBException - the LB exception

testSourceCount

public void testSourceCount()
Test source count.


testSourceContent

public void testSourceContent()
Test source content.


sourceEquals

protected boolean sourceEquals(Source source,
                               java.lang.String content,
                               java.lang.String role,
                               java.lang.String subRef)
Source equals.

Parameters:
source - the source
content - the content
role - the role
subRef - the sub ref
Returns:
true, if successful

getPreferredPresentation

protected Presentation getPreferredPresentation(Presentation[] presentations)
Gets the preferred presentation.

Parameters:
presentations - the presentations
Returns:
the preferred presentation

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.