Package com.proofpoint.http.client.testing

Examples of com.proofpoint.http.client.testing.TestingHttpClient


        collectedData = HashBasedTable.create();
        collectedData.put(ObjectName.getInstance("com.example:name=Foo"), "Size", 1.1);
        collectedData.put(ObjectName.getInstance("com.example:type=Foo,name=\"ba:r\",tag1=\"B\\\\a\\\"z\""), "Size", 1.2);

        httpClient = new TestingHttpClient(new TestingResponseFunction());
        sentJson = null;
    }
View Full Code Here


    }

    @Test
    public void testReportingDisabled()
    {
        httpClient = new TestingHttpClient(new Function<Request, Response>()
        {
            @Override
            public Response apply(Request input)
            {
                throw new UnsupportedOperationException();
View Full Code Here

    @BeforeMethod
    public void setup()
    {
        processor = mock(Processor.class);
        client = new HttpDiscoveryAnnouncementClient(nodeInfo, jsonCodec(Announcement.class), new TestingHttpClient(processor));
        announcements = ImmutableSet.of(
                serviceAnnouncement("foo").addProperty("bar", "baz").build(),
                serviceAnnouncement("quux").addProperty("a", "b").build()
        );
    }
View Full Code Here

TOP

Related Classes of com.proofpoint.http.client.testing.TestingHttpClient

Copyright © 2018 www.massapicom. 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.