|
|||||||||
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 edu.sdsc.inca.util.ExpandablePatternTest
public class ExpandablePatternTest
A JUnit for the ExpandablePattern class.
Constructor Summary | |
---|---|
ExpandablePatternTest()
|
Method Summary | |
---|---|
java.lang.String |
compare(java.util.HashSet h,
java.lang.String[] correct)
Tests a HashSet to see if it contains the expected members. |
void |
testAlternation()
Tests expand for alternation. |
void |
testAlternationAndCatenation()
Tests expand for a mix of alternation and catenation. |
void |
testCharSets()
Tests expand for character sets. |
void |
testConcatenation()
Tests expand for concatenation. |
void |
testDuplicates()
Tests expand for duplicate filtering. |
void |
testEmptyPattern()
Tests expand for an empty pattern. |
void |
testEscape()
Tests escaping of special characters. |
void |
testGlob()
Tests that translation from glob to regexp is done correctly. |
void |
testInfinite()
Tests expand for patterns that match an infinite set of strings. |
void |
testNesting()
Tests expand for nesting. |
void |
testNumericEscape()
Tests numeric escape characters. |
void |
testOptional()
Tests expand for the ? qualifier. |
void |
testRange()
Tests expand for the {} qualifier. |
void |
testSimplePattern()
Tests expand for a simple pattern. |
void |
testSpecialEscape()
Tests special escape characters. |
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 ExpandablePatternTest()
Method Detail |
---|
public java.lang.String compare(java.util.HashSet h, java.lang.String[] correct)
h
- the HashSet to testcorrect
- the strings expected to be found in the HashSet
public void testGlob()
public void testEmptyPattern() throws java.lang.Exception
java.lang.Exception
public void testSimplePattern() throws java.lang.Exception
java.lang.Exception
public void testConcatenation() throws java.lang.Exception
java.lang.Exception
public void testAlternation() throws java.lang.Exception
java.lang.Exception
public void testAlternationAndCatenation() throws java.lang.Exception
java.lang.Exception
public void testNesting() throws java.lang.Exception
java.lang.Exception
public void testDuplicates() throws java.lang.Exception
java.lang.Exception
public void testOptional() throws java.lang.Exception
java.lang.Exception
public void testRange() throws java.lang.Exception
java.lang.Exception
public void testInfinite() throws java.lang.Exception
java.lang.Exception
public void testEscape() throws java.lang.Exception
java.lang.Exception
public void testSpecialEscape() throws java.lang.Exception
java.lang.Exception
public void testNumericEscape() throws java.lang.Exception
java.lang.Exception
public void testCharSets() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |