Return-Path: Delivered-To: apmail-jakarta-hivemind-cvs-archive@www.apache.org Received: (qmail 85567 invoked from network); 25 Jun 2004 20:55:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Jun 2004 20:55:41 -0000 Received: (qmail 69056 invoked by uid 500); 25 Jun 2004 20:55:56 -0000 Delivered-To: apmail-jakarta-hivemind-cvs-archive@jakarta.apache.org Received: (qmail 68866 invoked by uid 500); 25 Jun 2004 20:55:52 -0000 Mailing-List: contact hivemind-cvs-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: hivemind-dev@jakarta.apache.org Delivered-To: mailing list hivemind-cvs@jakarta.apache.org Received: (qmail 68752 invoked by uid 99); 25 Jun 2004 20:55:48 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Fri, 25 Jun 2004 13:55:46 -0700 Received: (qmail 85475 invoked by uid 1616); 25 Jun 2004 20:55:29 -0000 Date: 25 Jun 2004 20:55:29 -0000 Message-ID: <20040625205529.85474.qmail@minotaur.apache.org> From: hlship@apache.org To: jakarta-hivemind-cvs@apache.org Subject: cvs commit: jakarta-hivemind/framework/src/test/hivemind/test/rules TestNumericTranslators.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hlship 2004/06/25 13:55:29 Modified: . status.xml framework/src/test/hivemind/test/rules TestNumericTranslators.java Log: [HIVEMIND-7] Fix how certain translator messages are generated to avoid unit test failures. Revision Changes Path 1.15 +4 -1 jakarta-hivemind/status.xml Index: status.xml =================================================================== RCS file: /home/cvs/jakarta-hivemind/status.xml,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- status.xml 25 Jun 2004 20:30:18 -0000 1.14 +++ status.xml 25 Jun 2004 20:55:28 -0000 1.15 @@ -80,10 +80,13 @@ Restore the getConfiguration() and expandSymbols() methods to the Registry interface. - SimpleDataLanguageParser calls the ContentHandler with a null namespace argument instead of "". That leads to some problems if you want to use transformers. + + Fix how certain translator messages are generated to avoid unit test failures. + 1.7 +6 -2 jakarta-hivemind/framework/src/test/hivemind/test/rules/TestNumericTranslators.java Index: TestNumericTranslators.java =================================================================== RCS file: /home/cvs/jakarta-hivemind/framework/src/test/hivemind/test/rules/TestNumericTranslators.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- TestNumericTranslators.java 25 Jun 2004 20:19:58 -0000 1.6 +++ TestNumericTranslators.java 25 Jun 2004 20:55:28 -0000 1.7 @@ -203,7 +203,9 @@ } catch (ApplicationRuntimeException ex) { - assertExceptionSubstring(ex, "Value 3 is less than minimum value 5.25."); + String message = java.text.MessageFormat.format("Value {0} is less than minimum value {1}.", + new Object[]{ new Double(3), new Double(5.25) } ); + assertExceptionSubstring(ex, message ); } } @@ -218,7 +220,9 @@ } catch (ApplicationRuntimeException ex) { - assertExceptionSubstring(ex, "Value 208.3 is greater than maximum value 207.5."); + String message = java.text.MessageFormat.format("Value {0} is greater than maximum value {1}.", + new Object[]{ new Double(208.3), new Double(207.5) } ); + assertExceptionSubstring(ex, message ); } } --------------------------------------------------------------------- To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org