You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemind.apache.org by hl...@apache.org on 2004/06/25 22:55:29 UTC

cvs commit: jakarta-hivemind/framework/src/test/hivemind/test/rules TestNumericTranslators.java

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 <code>getConfiguration()</code> and <code>expandSymbols()</code>
           methods to the <code>Registry</code> interface.
         </action>
  -      <action type="fix" devl="HLS" fixes-bug="HIVEMIND-9" 
  +      <action type="fix" dev="HLS" fixes-bug="HIVEMIND-9" 
           due-to="Dieter Bogdoll"> SimpleDataLanguageParser calls the 
           ContentHandler with a null namespace argument instead of "". That leads 
           to some problems if you want to use transformers. </action>
  +      <action type="fix" dev="HLS" fixes-bug="HIVEMIND-7" due-to="Achim Hügen">
  +        Fix how certain translator messages are generated to avoid unit test failures.
  +      </action>
       </release>
     </changes>
   </status>
  
  
  
  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