Fix failing test in FileUploadHandler_Test
FileSizeLimitExceededException message has changed after
org.apache.commons.fileupload update to version 1.3.1.
Change-Id: I519299905ba23e8106861c2b6490bcf82194f815
Signed-off-by: Ivan Furnadjiev <ivan@eclipsesource.com>
diff --git a/tests/org.eclipse.rap.addons.fileupload.test/src/org/eclipse/rap/addons/fileupload/FileUploadHandler_Test.java b/tests/org.eclipse.rap.addons.fileupload.test/src/org/eclipse/rap/addons/fileupload/FileUploadHandler_Test.java
index e8b9600..f493501 100644
--- a/tests/org.eclipse.rap.addons.fileupload.test/src/org/eclipse/rap/addons/fileupload/FileUploadHandler_Test.java
+++ b/tests/org.eclipse.rap.addons.fileupload.test/src/org/eclipse/rap/addons/fileupload/FileUploadHandler_Test.java
@@ -10,6 +10,15 @@
******************************************************************************/
package org.eclipse.rap.addons.fileupload;
+import static org.eclipse.rap.rwt.internal.service.ContextProvider.getApplicationContext;
+import static org.hamcrest.CoreMatchers.containsString;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertSame;
+import static org.junit.Assert.assertThat;
+import static org.junit.Assert.fail;
+
import java.io.IOException;
import java.io.InputStream;
@@ -30,17 +39,6 @@
import org.junit.Before;
import org.junit.Test;
-import static org.eclipse.rap.rwt.internal.service.ContextProvider.getApplicationContext;
-
-import static org.hamcrest.CoreMatchers.containsString;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.fail;
-
@SuppressWarnings( "restriction" )
public class FileUploadHandler_Test {
@@ -225,7 +223,7 @@
serviceHandler.service( ContextProvider.getRequest(), ContextProvider.getResponse() );
assertEquals( HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE, getResponseErrorStatus() );
- assertThat( getResponseContent(), containsString( "file exceeds its maximum permitted size" ) );
+ assertThat( getResponseContent(), containsString( "HTTP ERROR 413" ) );
}
@Test