Package org.jboss.aerogear.android

Examples of org.jboss.aerogear.android.Pipeline


        };

        PipeConfig config = new PipeConfig(url, MultipartRequestBuilderTest.MultiPartData.class);
        config.setRequestBuilder(new MultipartRequestBuilder<MultipartRequestBuilderTest.MultiPartData>());

        Pipeline pipeline = new Pipeline(url);
        Pipe<MultipartRequestBuilderTest.MultiPartData> restPipe = pipeline.pipe(MultipartRequestBuilderTest.MultiPartData.class, config);
        org.junit.Assert.assertEquals(MultipartRequestBuilder.class, restPipe.getRequestBuilder().getClass());

        Object restRunner = UnitTestUtils.getPrivateField(restPipe, "restRunner");
        UnitTestUtils.setPrivateField(restRunner, "httpProviderFactory", new Provider<HttpProvider>() {
            @Override
View Full Code Here


    public void testBuilderUsage() throws MalformedURLException {
        URL baseUrl = new URL("http://example.com");
        PipeConfig config = new PipeConfig(baseUrl, MultiPartData.class);
        config.setRequestBuilder(new MultipartRequestBuilder<MultiPartData>());

        Pipeline pipeline = new Pipeline(baseUrl);
        Pipe<MultiPartData> pipe = pipeline.pipe(MultiPartData.class, config);
        Assert.assertEquals(MultipartRequestBuilder.class, pipe.getRequestBuilder().getClass());

    }
View Full Code Here

TOP

Related Classes of org.jboss.aerogear.android.Pipeline

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.