You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by cr...@apache.org on 2002/07/19 05:09:06 UTC
cvs commit: jakarta-commons/validator/src/test/org/apache/commons/validator EmailTest.java
craigmcc 2002/07/18 20:09:06
Modified: validator build.xml
validator/src/test/org/apache/commons/validator
EmailTest.java
Log:
Add a build target ("test.email") that runs just the email tests, and
add another variation on the testEmailWithDash() test.
It is currently a mystery why this fails for others (bugzilla 10756, 10783)
but passes for me (JDK 1.4_01, Oro 2.0.6) without the patch listed for
10783.
Revision Changes Path
1.8 +12 -0 jakarta-commons/validator/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-commons/validator/build.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- build.xml 2 Apr 2002 01:59:11 -0000 1.7
+++ build.xml 19 Jul 2002 03:09:06 -0000 1.8
@@ -128,6 +128,18 @@
<classpath refid="test.classpath" />
</java>
</target>
+
+ <!-- Run JUnit Tests for Email only -->
+ <target name="test.email"
+ depends="build-test" description="runs email tests">
+ <java fork="yes" classname="junit.textui.TestRunner"
+ taskname="junit" failonerror="true">
+ <arg value="org.apache.commons.validator.EmailTest"/>
+ <classpath refid="test.classpath" />
+ </java>
+ </target>
+
+
</project>
1.2 +9 -4 jakarta-commons/validator/src/test/org/apache/commons/validator/EmailTest.java
Index: EmailTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/EmailTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- EmailTest.java 2 Apr 2002 01:59:44 -0000 1.1
+++ EmailTest.java 19 Jul 2002 03:09:06 -0000 1.2
@@ -192,6 +192,11 @@
info.setValue("andy.noble@data-workshop.com");
valueTest(info, true);
+
+ info.setValue("andy-noble@data-workshop.com");
+ valueTest(info, true);
+
+
}
/**
@@ -225,4 +230,4 @@
assertTrue("ValidatorResult should contain the '" + ACTION +"' action.", result.containsAction(ACTION));
assertTrue("ValidatorResult for the '" + ACTION +"' action should have " + (passed ? "passed" : "failed") + ".", (passed ? result.isValid(ACTION) : !result.isValid(ACTION)));
}
-}
\ No newline at end of file
+}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>