public class EmailTest extends AbstractCommonTest
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACTION
Deprecated.
The key used to retrieve the validator action.
|
protected static String |
FORM_KEY
Deprecated.
The key used to retrieve the set of validation
rules from the xml file.
|
resources| Modifier and Type | Method and Description |
|---|---|
void |
_testEmailFromPerl()
Deprecated.
Write this test based on perl Mail::RFC822::Address
which takes its example email address directly from RFC822
|
void |
_testEmailUserName()
Deprecated.
Write this test according to parts of RFC, as opposed to the type of character
that is being tested.
|
protected void |
setUp()
Deprecated.
Load
ValidatorResources from
validator-regexp.xml. |
void |
testEmail()
Deprecated.
Tests the e-mail validation.
|
void |
testEmailExtension()
Deprecated.
Tests the e-mail validation.
|
void |
testEmailLocalhost()
Deprecated.
Test that @localhost and @localhost.localdomain
addresses aren't declared valid by default
|
void |
testEmailWithBogusCharacter()
Deprecated.
Tests the e-mail validation with an RCS-noncompliant character in
the address.
|
void |
testEmailWithCommas()
Deprecated.
Tests the email validation with commas.
|
void |
testEmailWithControlChars()
Deprecated.
Tests the email validation with ascii control characters.
|
void |
testEmailWithDash()
Deprecated.
Tests the e-mail validation with a dash in
the address.
|
void |
testEmailWithDotEnd()
Deprecated.
Tests the e-mail validation with a dot at the end of
the address.
|
void |
testEmailWithNumericAddress()
Deprecated.
Tests the email validation with numeric domains.
|
void |
testEmailWithSpaces()
Deprecated.
Tests the email validation with spaces.
|
loadResourcescountTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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, failSameprotected static String FORM_KEY
protected void setUp() throws IOException, SAXException
ValidatorResources from
validator-regexp.xml.setUp in class junit.framework.TestCaseIOExceptionSAXExceptionpublic void testEmail() throws org.apache.commons.validator.ValidatorException
org.apache.commons.validator.ValidatorExceptionpublic void testEmailWithNumericAddress() throws org.apache.commons.validator.ValidatorException
org.apache.commons.validator.ValidatorExceptionpublic void testEmailExtension() throws org.apache.commons.validator.ValidatorException
org.apache.commons.validator.ValidatorExceptionpublic void testEmailWithDash() throws org.apache.commons.validator.ValidatorException
Tests the e-mail validation with a dash in the address.
org.apache.commons.validator.ValidatorExceptionpublic void testEmailWithDotEnd() throws org.apache.commons.validator.ValidatorException
org.apache.commons.validator.ValidatorExceptionpublic void testEmailWithBogusCharacter() throws org.apache.commons.validator.ValidatorException
org.apache.commons.validator.ValidatorExceptionpublic void testEmailWithCommas() throws org.apache.commons.validator.ValidatorException
org.apache.commons.validator.ValidatorExceptionpublic void testEmailWithSpaces() throws org.apache.commons.validator.ValidatorException
org.apache.commons.validator.ValidatorExceptionpublic void testEmailWithControlChars()
public void testEmailLocalhost() throws org.apache.commons.validator.ValidatorException
org.apache.commons.validator.ValidatorExceptionpublic void _testEmailUserName() throws org.apache.commons.validator.ValidatorException
FIXME: This test fails so disable it with a leading _ for 1.1.4 release. The real solution is to fix the email parsing.
ValidatorExceptionpublic void _testEmailFromPerl() throws org.apache.commons.validator.ValidatorException
ValidatorException - FIXME This test fails so disable it with a leading _ for 1.1.4 release.
The real solution is to fix the email parsing.Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.