@Test public void testSendInteger() { testSend(TestUtils.randomInt()); }
@Test public void testPublishInteger() { testPublish(TestUtils.randomInt()); }
@Test public void testReplyInteger() { testReply(TestUtils.randomInt()); }
@Test public void testReplyJsonObject() { JsonObject obj = new JsonObject(); obj.put(TestUtils.randomUnicodeString(100), TestUtils.randomUnicodeString(100)).put(TestUtils.randomUnicodeString(100), TestUtils.randomInt()); testReply(obj, (received) -> { assertEquals(obj, received); assertFalse(obj == received); // Make sure it's copied }); }
@Test public void testPublishJsonObject() { JsonObject obj = new JsonObject(); obj.put(TestUtils.randomUnicodeString(100), TestUtils.randomUnicodeString(100)).put(TestUtils.randomUnicodeString(100), TestUtils.randomInt()); testPublish(obj, (received) -> { assertEquals(obj, received); assertFalse(obj == received); // Make sure it's copied }); }
@Test public void testSendJsonObject() { JsonObject obj = new JsonObject(); obj.put(TestUtils.randomUnicodeString(100), TestUtils.randomUnicodeString(100)).put(TestUtils.randomUnicodeString(100), TestUtils.randomInt()); testSend(obj, (received) -> { assertEquals(obj, received); assertFalse(obj == received); // Make sure it's copied }); }
@Test public void testReplyJsonArray() { JsonArray arr = new JsonArray(); arr.add(TestUtils.randomUnicodeString(100)).add(TestUtils.randomInt()).add(TestUtils.randomBoolean()); testReply(arr, (received) -> { assertEquals(arr, received); assertFalse(arr == received); // Make sure it's copied }); }
@Test public void testPublishJsonArray() { JsonArray arr = new JsonArray(); arr.add(TestUtils.randomUnicodeString(100)).add(TestUtils.randomInt()).add(TestUtils.randomBoolean()); testPublish(arr, (received) -> { assertEquals(arr, received); assertFalse(arr == received); // Make sure it's copied }); }
@Test public void testSendJsonArray() { JsonArray arr = new JsonArray(); arr.add(TestUtils.randomUnicodeString(100)).add(TestUtils.randomInt()).add(TestUtils.randomBoolean()); testSend(arr, (received) -> { assertEquals(arr, received); assertFalse(arr == received); // Make sure it's copied }); }
Http2Settings initialSettings = TestUtils.randomHttp2Settings(); boolean useAlpn = TestUtils.randomBoolean(); int http2ConnectionWindowSize = TestUtils.randomInt(); String sslEngine = TestUtils.randomBoolean() ? "jdkSslEngineOptions" : "openSslEngineOptions"; List<HttpVersion> alpnVersions = Collections.singletonList(HttpVersion.values()[TestUtils.randomPositiveInt() % 3]);
Http2Settings initialSettings = randomHttp2Settings(); boolean useAlpn = TestUtils.randomBoolean(); int http2ConnectionWindowSize = TestUtils.randomInt(); boolean openSslSessionCacheEnabled = rand.nextBoolean(); SSLEngineOptions sslEngine = TestUtils.randomBoolean() ? new JdkSSLEngineOptions() : new OpenSSLEngineOptions();
@Test public void testReplyInteger() { testReply(TestUtils.randomInt()); }
@Test public void testSendInteger() { testSend(TestUtils.randomInt()); }
@Test public void testPublishInteger() { testPublish(TestUtils.randomInt()); }
@Test public void testSendJsonObject() { JsonObject obj = new JsonObject(); obj.put(TestUtils.randomUnicodeString(100), TestUtils.randomUnicodeString(100)).put(TestUtils.randomUnicodeString(100), TestUtils.randomInt()); testSend(obj, (received) -> { assertEquals(obj, received); assertFalse(obj == received); // Make sure it's copied }); }
@Test public void testReplyJsonObject() { JsonObject obj = new JsonObject(); obj.put(TestUtils.randomUnicodeString(100), TestUtils.randomUnicodeString(100)).put(TestUtils.randomUnicodeString(100), TestUtils.randomInt()); testReply(obj, (received) -> { assertEquals(obj, received); assertFalse(obj == received); // Make sure it's copied }); }
@Test public void testPublishJsonObject() { JsonObject obj = new JsonObject(); obj.put(TestUtils.randomUnicodeString(100), TestUtils.randomUnicodeString(100)).put(TestUtils.randomUnicodeString(100), TestUtils.randomInt()); testPublish(obj, (received) -> { assertEquals(obj, received); assertFalse(obj == received); // Make sure it's copied }); }
@Test public void testReplyJsonArray() { JsonArray arr = new JsonArray(); arr.add(TestUtils.randomUnicodeString(100)).add(TestUtils.randomInt()).add(TestUtils.randomBoolean()); testReply(arr, (received) -> { assertEquals(arr, received); assertFalse(arr == received); // Make sure it's copied }); }
@Test public void testPublishJsonArray() { JsonArray arr = new JsonArray(); arr.add(TestUtils.randomUnicodeString(100)).add(TestUtils.randomInt()).add(TestUtils.randomBoolean()); testPublish(arr, (received) -> { assertEquals(arr, received); assertFalse(arr == received); // Make sure it's copied }); }
@Test public void testSendJsonArray() { JsonArray arr = new JsonArray(); arr.add(TestUtils.randomUnicodeString(100)).add(TestUtils.randomInt()).add(TestUtils.randomBoolean()); testSend(arr, (received) -> { assertEquals(arr, received); assertFalse(arr == received); // Make sure it's copied }); }