Package com.streamreduce.rest.dto.response

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


        dto.setId(role.getId());
        return dto;
    }

    protected AccountResponseDTO toDTO(Account account) {
        AccountResponseDTO dto = new AccountResponseDTO();
//        dto.setBillingAddress(account.getBillingAddress());
        dto.setDescription(account.getDescription());
        dto.setFuid(account.getFuid());
        dto.setName(account.getName());
        dto.setUrl(account.getUrl());
        dto.setId(account.getId());
        return dto;
    }
View Full Code Here


        json.put("name", newName);

        makeRequest(getUrl() + "/account/profile", "PUT", json, authToken);

        AccountResponseDTO responseDTO = jsonToObject(makeRequest(adminBaseUrl + "/account/" +
                testAccount.getId(), "GET", null, authToken),
                TypeFactory.defaultInstance().constructType(AccountResponseDTO.class));

        assertEquals(newName, responseDTO.getName());
    }
View Full Code Here

    @Test
    @Ignore
    public void testGetAccount() throws Exception {
        String url = getUrl();
        AccountResponseDTO account = jsonToObject(makeRequest(url, "GET", null, authToken),
                TypeFactory.defaultInstance().constructType(AccountResponseDTO.class));

        assertNotNull(account);
        assertEquals(testUser.getAccount().getName(), account.getName());
        assertEquals(testUser.getAccount().getFuid(), account.getFuid());

    }
View Full Code Here

    @Test
    @Ignore
    public void testGetAccount() throws Exception {
        String url = getUrl() + "/" + testUser.getAccount().getId();
        AccountResponseDTO account = jsonToObject(makeRequest(url, "GET", null, authToken),
                TypeFactory.defaultInstance().constructType(AccountResponseDTO.class));

        assertNotNull(account);
        assertEquals(testUser.getAccount().getName(), account.getName());
        assertEquals(testUser.getAccount().getFuid(), account.getFuid());

    }
View Full Code Here

    @Ignore
    public void testDeleteAccount() throws Exception {

        // we have a bootstrapped user and account
        String url = getUrl() + "/" + testUser.getAccount().getId();
        AccountResponseDTO account = jsonToObject(makeRequest(url, "GET", null, authToken),
                TypeFactory.defaultInstance().constructType(AccountResponseDTO.class));

        assertNotNull(account);

        url = accountBaseUrl + "/users";
View Full Code Here

TOP

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

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.