public class RegexValidatorTest extends junit.framework.TestCase
| Constructor and Description |
|---|
RegexValidatorTest(String name)
Constrct a new test case.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp()
Set Up.
|
protected void |
tearDown()
Tear Down.
|
void |
testExceptions()
Test exceptions
|
void |
testMissingRegex()
Test exceptions
|
void |
testMultipleInsensitive()
Test with multiple regular expressions (case in-sensitive).
|
void |
testMultipleSensitive()
Test with multiple regular expressions (case sensitive).
|
void |
testNullValue()
Test Null value
|
void |
testSingle()
Test instance methods with single regular expression.
|
void |
testToString()
Test toString() method
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, failSamepublic RegexValidatorTest(String name)
name - The name of the testprotected void setUp() throws Exception
setUp in class junit.framework.TestCaseExceptionprotected void tearDown() throws Exception
tearDown in class junit.framework.TestCaseExceptionpublic void testSingle()
public void testMultipleSensitive()
public void testMultipleInsensitive()
public void testNullValue()
public void testMissingRegex()
public void testExceptions()
public void testToString()
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.