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

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

public class TestSpellingErrorTolerantSubString
extends BaseSearchAlgorithmTest

The Class TestWeightedDoubleMetaphone.

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
TestSpellingErrorTolerantSubString()
           
 
Method Summary
protected  java.lang.String getTestID()
          To be implemented by each descendant testcase.
 void testSpellingErrorTolerantSubString()
          Test spelling error tolerant sub string.
 void testSpellingErrorTolerantSubStringDifferentMetaphoneValue()
          Test spelling error tolerant sub string different metaphone value.
 void testSpellingErrorTolerantSubStringDifferentMetaphoneValueFirstResult()
          Test spelling error tolerant sub string different metaphone value first result.
 void testSpellingErrorTolerantSubStringFirstResult()
          Test spelling error tolerant sub string first result.
 void testSpellingErrorTolerantSubStringSpecialCharacters()
          Test spelling error tolerant sub string special characters.
 void testSpellingErrorTolerantSubStringThreeTokensCorrectSpelling()
          Test spelling error tolerant sub string three tokens correct spelling.
 void testSpellingErrorTolerantSubStringThreeTokensDifferentOrder()
          Test spelling error tolerant sub string three tokens different order.
 void testSpellingErrorTolerantSubStringThreeTokensSpellingErrorTolerant()
          Test spelling error tolerant sub string three tokens spelling error tolerant.
 void testSpellingErrorTolerantSubStringThreeTokensTooMuchDistance()
          Test spelling error tolerant sub string three tokens too much distance.
 void testSpellingErrorTolerantSubStringTwoTokens()
          Test spelling error tolerant sub string two tokens.
 void testSpellingErrorTolerantSubStringWrongSpecialCharacters()
          Test spelling error tolerant sub string wrong special characters.
 
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

TestSpellingErrorTolerantSubString

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

testSpellingErrorTolerantSubString

public void testSpellingErrorTolerantSubString()
                                        throws java.lang.Exception
Test spelling error tolerant sub string.

Throws:
java.lang.Exception - the exception

testSpellingErrorTolerantSubStringFirstResult

public void testSpellingErrorTolerantSubStringFirstResult()
                                                   throws java.lang.Exception
Test spelling error tolerant sub string first result.

Throws:
java.lang.Exception - the exception

testSpellingErrorTolerantSubStringDifferentMetaphoneValue

public void testSpellingErrorTolerantSubStringDifferentMetaphoneValue()
                                                               throws java.lang.Exception
Test spelling error tolerant sub string different metaphone value.

Throws:
java.lang.Exception - the exception

testSpellingErrorTolerantSubStringDifferentMetaphoneValueFirstResult

public void testSpellingErrorTolerantSubStringDifferentMetaphoneValueFirstResult()
                                                                          throws java.lang.Exception
Test spelling error tolerant sub string different metaphone value first result.

Throws:
java.lang.Exception - the exception

testSpellingErrorTolerantSubStringTwoTokens

public void testSpellingErrorTolerantSubStringTwoTokens()
                                                 throws java.lang.Exception
Test spelling error tolerant sub string two tokens.

Throws:
java.lang.Exception - the exception

testSpellingErrorTolerantSubStringThreeTokensCorrectSpelling

public void testSpellingErrorTolerantSubStringThreeTokensCorrectSpelling()
                                                                  throws java.lang.Exception
Test spelling error tolerant sub string three tokens correct spelling.

Throws:
java.lang.Exception - the exception

testSpellingErrorTolerantSubStringThreeTokensDifferentOrder

public void testSpellingErrorTolerantSubStringThreeTokensDifferentOrder()
                                                                 throws java.lang.Exception
Test spelling error tolerant sub string three tokens different order.

Throws:
java.lang.Exception - the exception

testSpellingErrorTolerantSubStringThreeTokensTooMuchDistance

public void testSpellingErrorTolerantSubStringThreeTokensTooMuchDistance()
                                                                  throws java.lang.Exception
Test spelling error tolerant sub string three tokens too much distance.

Throws:
java.lang.Exception - the exception

testSpellingErrorTolerantSubStringThreeTokensSpellingErrorTolerant

public void testSpellingErrorTolerantSubStringThreeTokensSpellingErrorTolerant()
                                                                        throws java.lang.Exception
Test spelling error tolerant sub string three tokens spelling error tolerant.

Throws:
java.lang.Exception - the exception

testSpellingErrorTolerantSubStringSpecialCharacters

public void testSpellingErrorTolerantSubStringSpecialCharacters()
                                                         throws java.lang.Exception
Test spelling error tolerant sub string special characters.

Throws:
java.lang.Exception - the exception

testSpellingErrorTolerantSubStringWrongSpecialCharacters

public void testSpellingErrorTolerantSubStringWrongSpecialCharacters()
                                                              throws java.lang.Exception
Test spelling error tolerant sub string wrong special characters.

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.