Author: bago
Date: Thu Aug 21 11:26:45 2008
New Revision: 687824
URL: http://svn.apache.org/viewvc?rev=687824&view=rev
Log:
Sometimes running tests locally would help ;-)
Fix junit tests in case the project is built/run against java5+ (regexp
exception is a bit different)
Modified:
james/server/trunk/mailets-function/src/test/java/org/apache/james/transport/matchers/HasMailAttributeWithValueRegexTest.java
james/server/trunk/mailets-function/src/test/java/org/apache/james/transport/matchers/RecipientIsRegexTest.java
Modified:
james/server/trunk/mailets-function/src/test/java/org/apache/james/transport/matchers/HasMailAttributeWithValueRegexTest.java
URL:
http://svn.apache.org/viewvc/james/server/trunk/mailets-function/src/test/java/org/apache/james/transport/matchers/HasMailAttributeWithValueRegexTest.java?rev=687824&r1=687823&r2=687824&view=diff
==============================================================================
---
james/server/trunk/mailets-function/src/test/java/org/apache/james/transport/matchers/HasMailAttributeWithValueRegexTest.java
(original)
+++
james/server/trunk/mailets-function/src/test/java/org/apache/james/transport/matchers/HasMailAttributeWithValueRegexTest.java
Thu Aug 21 11:26:45 2008
@@ -96,7 +96,7 @@
} catch (AssertionFailedError e) {
// NOTE the expected exception changes when the project is
built/run
// against non java 1.4 jvm.
- assertEquals(exception+"
(org.apache.oro.text.regex.MalformedPatternException: Unmatched parentheses.",
regexException);
+ assertEquals(exception+"
(org.apache.oro.text.regex.MalformedPatternException: Unmatched parentheses.)",
regexException);
}
}
Modified:
james/server/trunk/mailets-function/src/test/java/org/apache/james/transport/matchers/RecipientIsRegexTest.java
URL:
http://svn.apache.org/viewvc/james/server/trunk/mailets-function/src/test/java/org/apache/james/transport/matchers/RecipientIsRegexTest.java?rev=687824&r1=687823&r2=687824&view=diff
==============================================================================
---
james/server/trunk/mailets-function/src/test/java/org/apache/james/transport/matchers/RecipientIsRegexTest.java
(original)
+++
james/server/trunk/mailets-function/src/test/java/org/apache/james/transport/matchers/RecipientIsRegexTest.java
Thu Aug 21 11:26:45 2008
@@ -112,7 +112,7 @@
} catch (AssertionFailedError e) {
// NOTE the expected exception changes when the project is
built/run
// against non java 1.4 jvm.
- assertEquals(exception+"
(org.apache.oro.text.regex.MalformedPatternException: Unmatched parentheses.",
regexException);
+ assertEquals(exception+"
(org.apache.oro.text.regex.MalformedPatternException: Unmatched parentheses.)",
regexException);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]