|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.commons.betwixt.strategy.TestDefaultPluralStemmer
public class TestDefaultPluralStemmer
Tests the defaultPluralStemmer
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 |
---|
public TestDefaultPluralStemmer(java.lang.String testName)
Method Detail |
---|
public static junit.framework.Test suite()
public void testNullMap()
public void testFirstMatch()
public void testSecondMatch()
public void testSecondNonMatch()
public void testThirdMatch()
public void testMultipleMatches()
public void testESPluralEndingMatch()
public void testClosestMatch()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |