Package com.streamreduce.rest.dto.response

Examples of com.streamreduce.rest.dto.response.ConnectionProviderResponseDTO


                "GET", null, authnToken),
                TypeFactory.defaultInstance().constructType(
                        ConnectionProvidersResponseDTO.class));
        assertTrue(responseDTO.getProviders().size() == 1);

        ConnectionProviderResponseDTO awsProvider = responseDTO.getProviders().get(0);
        assertEquals("aws", awsProvider.getId());

        List<AuthTypeResponseDTO> authTypes = awsProvider.getAuthTypes().getAuthTypes();
        assertEquals(1, authTypes.size());
        assertEquals(AuthType.USERNAME_PASSWORD.toString(), authTypes.get(0).getType());
    }
View Full Code Here


                "GET", null, authnToken),
                TypeFactory.defaultInstance().constructType(
                        ConnectionProvidersResponseDTO.class));
        assertTrue(responseDTO.getProviders().size() == 1);

        ConnectionProviderResponseDTO feedProviders = responseDTO.getProviders().get(0);
        assertEquals("rss", feedProviders.getId());

        List<AuthTypeResponseDTO> authTypes = feedProviders.getAuthTypes().getAuthTypes();

        //These will fail with NoSuchElementExceptions if the criteria aren't met
        Iterables.find(authTypes, new Predicate<AuthTypeResponseDTO>() {
            @Override
            public boolean apply(@Nullable AuthTypeResponseDTO input) {
View Full Code Here

                "GET", null, authnToken),
                TypeFactory.defaultInstance().constructType(
                        ConnectionProvidersResponseDTO.class));
        assertTrue(responseDTO.getProviders().size() == 2);

        ConnectionProviderResponseDTO githubProviderDTO = Iterables.find(responseDTO.getProviders(), new Predicate<ConnectionProviderResponseDTO>() {
            @Override
            public boolean apply(@Nullable ConnectionProviderResponseDTO input) {
                return input != null && input.getId().equals("github");
            }
        });

        List<AuthTypeResponseDTO> authTypes = githubProviderDTO.getAuthTypes().getAuthTypes();

        //These will fail with NoSuchElementExceptions if the criteria aren't met
        Iterables.find(authTypes, new Predicate<AuthTypeResponseDTO>() {
            @Override
            public boolean apply(@Nullable AuthTypeResponseDTO input) {
View Full Code Here

TOP

Related Classes of com.streamreduce.rest.dto.response.ConnectionProviderResponseDTO

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.