]> source.dussan.org Git - vaadin-framework.git/commitdiff
#6361 unit test compatibility with JRE 1.5
authorHenri Sara <henri.sara@itmill.com>
Wed, 9 Feb 2011 15:12:38 +0000 (15:12 +0000)
committerHenri Sara <henri.sara@itmill.com>
Wed, 9 Feb 2011 15:12:38 +0000 (15:12 +0000)
svn changeset:17255/svn branch:6.5

tests/src/com/vaadin/tests/server/TestSimpleMultiPartInputStream.java

index 5907bd583ae9f2029d725921234ab153841e6ecb..155f9c19f3b551a13aecc526497a92b038e0fbd2 100644 (file)
@@ -33,7 +33,7 @@ public class TestSimpleMultiPartInputStream extends TestCase {
         } catch (IOException e) {
             throw new IOException(e.getMessage() + "; expected "
                     + new String(expected) + " but got "
-                    + resultStream.toString(), e);
+                    + resultStream.toString());
         }
         if (!Arrays.equals(expected, resultStream.toByteArray())) {
             throw new Exception("Mismatch: expected " + new String(expected)
@@ -72,6 +72,10 @@ public class TestSimpleMultiPartInputStream extends TestCase {
         checkBoundaryDetection("xyz123aa", "aa", "xyz123");
     }
 
+    public void testRepeatingNewlineBoundary() throws Exception {
+        checkBoundaryDetection("1234567890\n\n1234567890", "\n\n", "");
+    }
+
     public void testRepeatingStringBoundary() throws Exception {
         checkBoundaryDetection("ababxyz123", "abab", "");
         checkBoundaryDetection("abaxyzabab123", "abab", "abaxyz");