org.LexGrid.LexBIG.Impl.function.query.lucene.searchAlgorithms
Class TestLiteralSubString

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.lucene.searchAlgorithms.BaseSearchAlgorithmTest
                  extended by org.LexGrid.LexBIG.Impl.function.query.lucene.searchAlgorithms.TestLiteralSubString
All Implemented Interfaces:
junit.framework.Test

public class TestLiteralSubString
extends BaseSearchAlgorithmTest

The Class TestSubString.

Author:
Kevin Peterson

Field Summary
 
Fields inherited from class org.LexGrid.LexBIG.Impl.function.query.lucene.searchAlgorithms.BaseSearchAlgorithmTest
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
TestLiteralSubString()
           
 
Method Summary
protected  java.lang.String getTestID()
          To be implemented by each descendant testcase.
 void testLiteralSubString()
          Test starts with.
 void testLiteralSubStringAllTerms()
          Test literal sub string all terms.
 void testLiteralSubStringCaseInsensitive()
          Test starts with case insensitive.
 void testLiteralSubStringInvalidDistance()
          Test literal sub string invalid distance.
 void testLiteralSubStringInvalidOrder()
          Test literal sub string invalid order.
 void testLiteralSubStringInvalidSpecialCharacter()
          Test literal sub string invalid special character.
 void testLiteralSubStringInvalidSpecialCharacterCaseInsensitive()
          Test literal sub string invalid special character case insensitive.
 void testLiteralSubStringLeadingAndTrailingWildcard()
          Test literal sub string leading and trailing wildcard.
 void testLiteralSubStringLeadingWildcard()
          Test literal sub string leading wildcard.
 void testLiteralSubStringNoMatch()
          Test starts with no match.
 void testLiteralSubStringTrailingWildcard()
          Test literal sub string trailing wildcard.
 void testLiteralSubStringTwoTerm()
          Test literal sub string two term.
 
Methods inherited from class org.LexGrid.LexBIG.Impl.function.query.lucene.searchAlgorithms.BaseSearchAlgorithmTest
checkForMatch, checkForMatch, getAutosCodedNodeSet, setUp, testSetUp
 
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

TestLiteralSubString

public TestLiteralSubString()
Method Detail

getTestID

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

Overrides:
getTestID in class BaseSearchAlgorithmTest
Returns:
String

testLiteralSubString

public void testLiteralSubString()
                          throws java.lang.Exception
Test starts with.

Throws:
java.lang.Exception - the exception

testLiteralSubStringInvalidSpecialCharacter

public void testLiteralSubStringInvalidSpecialCharacter()
                                                 throws java.lang.Exception
Test literal sub string invalid special character.

Throws:
java.lang.Exception - the exception

testLiteralSubStringInvalidSpecialCharacterCaseInsensitive

public void testLiteralSubStringInvalidSpecialCharacterCaseInsensitive()
                                                                throws java.lang.Exception
Test literal sub string invalid special character case insensitive.

Throws:
java.lang.Exception - the exception

testLiteralSubStringTwoTerm

public void testLiteralSubStringTwoTerm()
                                 throws java.lang.Exception
Test literal sub string two term.

Throws:
java.lang.Exception - the exception

testLiteralSubStringAllTerms

public void testLiteralSubStringAllTerms()
                                  throws java.lang.Exception
Test literal sub string all terms.

Throws:
java.lang.Exception - the exception

testLiteralSubStringInvalidDistance

public void testLiteralSubStringInvalidDistance()
                                         throws java.lang.Exception
Test literal sub string invalid distance.

Throws:
java.lang.Exception - the exception

testLiteralSubStringInvalidOrder

public void testLiteralSubStringInvalidOrder()
                                      throws java.lang.Exception
Test literal sub string invalid order.

Throws:
java.lang.Exception - the exception

testLiteralSubStringLeadingWildcard

public void testLiteralSubStringLeadingWildcard()
                                         throws java.lang.Exception
Test literal sub string leading wildcard.

Throws:
java.lang.Exception - the exception

testLiteralSubStringTrailingWildcard

public void testLiteralSubStringTrailingWildcard()
                                          throws java.lang.Exception
Test literal sub string trailing wildcard.

Throws:
java.lang.Exception - the exception

testLiteralSubStringLeadingAndTrailingWildcard

public void testLiteralSubStringLeadingAndTrailingWildcard()
                                                    throws java.lang.Exception
Test literal sub string leading and trailing wildcard.

Throws:
java.lang.Exception - the exception

testLiteralSubStringNoMatch

public void testLiteralSubStringNoMatch()
                                 throws java.lang.Exception
Test starts with no match.

Throws:
java.lang.Exception - the exception

testLiteralSubStringCaseInsensitive

public void testLiteralSubStringCaseInsensitive()
                                         throws java.lang.Exception
Test starts with case insensitive.

Throws:
java.lang.Exception - the 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.