tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r1196377 - in /tapestry/tapestry5/trunk/tapestry-core/src: main/java/org/apache/tapestry5/internal/ main/resources/org/apache/tapestry5/internal/ test/java/org/apache/tapestry5/internal/
Date Tue, 01 Nov 2011 23:12:00 GMT
Author: hlship
Date: Tue Nov  1 23:12:00 2011
New Revision: 1196377

URL: http://svn.apache.org/viewvc?rev=1196377&view=rev
Log:
Remove class InternalMessages

Removed:
    tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/InternalMessages.java
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/internal/InternalStrings.properties
Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/TapestryInternalUtils.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/TapestryInternalUtilsTest.java

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/TapestryInternalUtils.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/TapestryInternalUtils.java?rev=1196377&r1=1196376&r2=1196377&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/TapestryInternalUtils.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/TapestryInternalUtils.java
Tue Nov  1 23:12:00 2011
@@ -243,7 +243,7 @@ public class TapestryInternalUtils
         int pos = input.indexOf('=');
 
         if (pos < 1)
-            throw new IllegalArgumentException(InternalMessages.badKeyValue(input));
+            throw new IllegalArgumentException(String.format("Key/value pair '%s' is not
properly formatted (it does not contain an equals sign).", input));
 
         String key = input.substring(0, pos);
         String value = input.substring(pos + 1);

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/TapestryInternalUtilsTest.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/TapestryInternalUtilsTest.java?rev=1196377&r1=1196376&r2=1196377&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/TapestryInternalUtilsTest.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/TapestryInternalUtilsTest.java
Tue Nov  1 23:12:00 2011
@@ -222,7 +222,7 @@ public class TapestryInternalUtilsTest e
             unreachable();
         } catch (IllegalArgumentException ex)
         {
-            assertEquals(ex.getMessage(), InternalMessages.badKeyValue(input));
+            assertEquals(ex.getMessage(), "Key/value pair 'abraxas' is not properly formatted
(it does not contain an equals sign).");
         }
     }
 



Mime
View raw message