Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2012-08-03 15:49:03 -0400
committerJoakim Erdfelt2012-08-03 15:49:03 -0400
commit33270eced523cb1a524c7a1885c7a70703de7ce9 (patch)
treeeff143b264f1ed79dbead492c34927f643e8b052 /jetty-websocket
parenta18e28d767ea821cc27e2a901cb24cf800bc62aa (diff)
downloadorg.eclipse.jetty.project-33270eced523cb1a524c7a1885c7a70703de7ce9.tar.gz
org.eclipse.jetty.project-33270eced523cb1a524c7a1885c7a70703de7ce9.tar.xz
org.eclipse.jetty.project-33270eced523cb1a524c7a1885c7a70703de7ce9.zip
More valid UTF8 text payload edge cases
Diffstat (limited to 'jetty-websocket')
-rw-r--r--jetty-websocket/websocket-server/src/test/java/org/eclipse/jetty/websocket/server/ab/TestABCase6.java350
1 files changed, 350 insertions, 0 deletions
diff --git a/jetty-websocket/websocket-server/src/test/java/org/eclipse/jetty/websocket/server/ab/TestABCase6.java b/jetty-websocket/websocket-server/src/test/java/org/eclipse/jetty/websocket/server/ab/TestABCase6.java
index a41c9607a3..418a445720 100644
--- a/jetty-websocket/websocket-server/src/test/java/org/eclipse/jetty/websocket/server/ab/TestABCase6.java
+++ b/jetty-websocket/websocket-server/src/test/java/org/eclipse/jetty/websocket/server/ab/TestABCase6.java
@@ -950,6 +950,356 @@ public class TestABCase6 extends AbstractABCase
}
/**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_1() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("EFBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_10() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F18FBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_11() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F19FBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_12() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F19FBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_13() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F1AFBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_14() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F1AFBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_15() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F1BFBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_16() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F1BFBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_17() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F28FBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_18() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F28FBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_19() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F29FBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_2() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("EFBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_20() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F29FBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_21() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F2AFBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_22() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F2AFBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_23() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F2BFBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_24() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F2BFBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_25() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F38FBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_26() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F38FBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_27() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F39FBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_28() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F39FBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_29() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F3AFBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_3() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F09FBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_30() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F3AFBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_31() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F3BFBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_32() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F3BFBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_33() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F48FBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_34() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F48FBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_4() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F09FBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_5() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F0AFBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_6() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F0AFBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_7() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F0BFBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_8() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F0BFBFBF");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (non character code points)
+ */
+ @Test
+ public void testCase6_22_9() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("F18FBFBE");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
+ * valid utf8 text message, 1 frame/fragment. (unicode replacement character)
+ */
+ @Test
+ public void testCase6_23_1() throws Exception
+ {
+ byte msg[] = Hex.asByteArray("EFBFBD");
+ assertEchoTextMessage(msg);
+ }
+
+ /**
* invalid utf8 text message, 1 frame/fragments
*/
@Test

Back to the top