struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject struts git commit: Fixes test to match fixed error message
Date Tue, 10 Jan 2017 18:42:11 GMT
Repository: struts
Updated Branches:
  refs/heads/master 880c4c2d3 -> ff8d73159


Fixes test to match fixed error message


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/ff8d7315
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/ff8d7315
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/ff8d7315

Branch: refs/heads/master
Commit: ff8d731594b770eacad47dbb9d67025a1810ea65
Parents: 880c4c2
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Tue Jan 10 19:41:59 2017 +0100
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Tue Jan 10 19:41:59 2017 +0100

----------------------------------------------------------------------
 .../org/apache/struts2/interceptor/FileUploadInterceptorTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/ff8d7315/core/src/test/java/org/apache/struts2/interceptor/FileUploadInterceptorTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/struts2/interceptor/FileUploadInterceptorTest.java
b/core/src/test/java/org/apache/struts2/interceptor/FileUploadInterceptorTest.java
index 5ac4bc2..0224f68 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/FileUploadInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/FileUploadInterceptorTest.java
@@ -207,7 +207,7 @@ public class FileUploadInterceptorTest extends StrutsInternalTestCase
{
         assertEquals(1, errors.size());
         String msg = (String) errors.get(0);
         // the error message should contain at least this test
-        assertTrue(msg.startsWith("The file is to large to be uploaded"));
+        assertTrue(msg.startsWith("The file is too large to be uploaded"));
         assertTrue(msg.indexOf("inputName") > 0);
         assertTrue(msg.indexOf("log4j2.xml") > 0);
     }


Mime
View raw message