Examples of onServerRequest()


Examples of io.reactivex.netty.contexts.RequestIdProvider.onServerRequest()

    @Test
    public void testOnServerRequest() throws Exception {
        RequestIdProvider provider = new HttpRequestIdProvider(REQUEST_ID_HEADER_NAME, CORRELATOR);
        MapBackedKeySupplier keySupplier = new MapBackedKeySupplier(new HashMap<String, String>());
        AttributeMap attributeMap = new DefaultAttributeMap();
        String requestId = provider.onServerRequest(keySupplier, attributeMap);
        Assert.assertNull("Request Id should be null.", requestId);

        String expectedId = "hellothere";
        keySupplier.put(REQUEST_ID_HEADER_NAME, expectedId);
View Full Code Here

Examples of io.reactivex.netty.contexts.RequestIdProvider.onServerRequest()

        Assert.assertNull("Request Id should be null.", requestId);

        String expectedId = "hellothere";
        keySupplier.put(REQUEST_ID_HEADER_NAME, expectedId);

        requestId = provider.onServerRequest(keySupplier, attributeMap);

        Assert.assertEquals("Unexpected request id.", expectedId, requestId);
    }

    @Test
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.