org.apache.commons.betwixt.strategy
Class TestDefaultPluralStemmer

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.betwixt.strategy.TestDefaultPluralStemmer
All Implemented Interfaces:
junit.framework.Test

public class TestDefaultPluralStemmer
extends junit.framework.TestCase

Tests the defaultPluralStemmer

Version:
$Id: TestDefaultPluralStemmer.java 438373 2006-08-30 05:17:21Z bayard $
Author:
Martin van den Bemt

Constructor Summary
TestDefaultPluralStemmer(java.lang.String testName)
           
 
Method Summary
static junit.framework.Test suite()
           
 void testClosestMatch()
          Test if the closest match mechanisme is working
 void testESPluralEndingMatch()
          Test to find matched where plural ending is "es"
 void testFirstMatch()
          This is the first match when calling the defaultStemmer.
 void testMultipleMatches()
          Tests to see if you get warned when there are multiple matches found
 void testNullMap()
           
 void testSecondMatch()
          Tests if the y is nicely replaces with ies and the correct ElementDescriptor is returned
 void testSecondNonMatch()
          Tests if it actually skips the y if the length not greater than 1.
 void testThirdMatch()
          Uses the third if in pluralstemmer.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestDefaultPluralStemmer

public TestDefaultPluralStemmer(java.lang.String testName)
Method Detail

suite

public static junit.framework.Test suite()

testNullMap

public void testNullMap()

testFirstMatch

public void testFirstMatch()
This is the first match when calling the defaultStemmer. It just adds an s to the the property and it should find it..


testSecondMatch

public void testSecondMatch()
Tests if the y is nicely replaces with ies and the correct ElementDescriptor is returned


testSecondNonMatch

public void testSecondNonMatch()
Tests if it actually skips the y if the length not greater than 1.


testThirdMatch

public void testThirdMatch()
Uses the third if in pluralstemmer. It should return the specified y, without any changing.


testMultipleMatches

public void testMultipleMatches()
Tests to see if you get warned when there are multiple matches found


testESPluralEndingMatch

public void testESPluralEndingMatch()
Test to find matched where plural ending is "es"


testClosestMatch

public void testClosestMatch()
Test if the closest match mechanisme is working



Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.