Examples of AccountCharacterDto


Examples of lv.odylab.evemanage.integration.eveapi.dto.AccountCharacterDto

    @Test
    public void testPopulateApiKeyData_ValidFull() throws EveApiException, ApiKeyShouldBeRemovedException {
        ApiKey apiKey = new ApiKey();
        apiKey.setApiKeyUserID(1L);
        List<AccountCharacterDto> accountCharacterDtos = new ArrayList<AccountCharacterDto>();
        AccountCharacterDto accountCharacterDto1 = new AccountCharacterDto();
        accountCharacterDto1.setName("character1");
        accountCharacterDto1.setCharacterID(2L);
        accountCharacterDto1.setCorporationName("corporation1");
        accountCharacterDto1.setCorporationID(3L);
        AccountCharacterDto accountCharacterDto2 = new AccountCharacterDto();
        accountCharacterDto2.setName("character2");
        accountCharacterDto2.setCharacterID(4L);
        accountCharacterDto2.setCorporationName("corporation2");
        accountCharacterDto2.setCorporationID(5L);
        accountCharacterDtos.add(accountCharacterDto1);
        accountCharacterDtos.add(accountCharacterDto2);

        when(securityManager.encrypt("apiKeyString".getBytes())).thenReturn("encryptedApiKey".getBytes());
        when(hashCalculator.hashApiKey(1L, "apiKeyString")).thenReturn("apiKeyHash");
View Full Code Here

Examples of lv.odylab.evemanage.integration.eveapi.dto.AccountCharacterDto

    @Test
    public void testPopulateApiKeyData_ValidLimitedWithCharacter() throws EveApiException, ApiKeyShouldBeRemovedException {
        ApiKey apiKey = new ApiKey();
        apiKey.setApiKeyUserID(1L);
        List<AccountCharacterDto> accountCharacterDtos = new ArrayList<AccountCharacterDto>();
        AccountCharacterDto accountCharacterDto = new AccountCharacterDto();
        accountCharacterDto.setName("character1");
        accountCharacterDto.setCharacterID(2L);
        accountCharacterDto.setCorporationName("corporation1");
        accountCharacterDto.setCorporationID(3L);
        accountCharacterDtos.add(accountCharacterDto);

        when(securityManager.encrypt("apiKeyString".getBytes())).thenReturn("encryptedApiKey".getBytes());
        when(eveApiGateway.getApiKeyCharacters("apiKeyString", 1L)).thenReturn(accountCharacterDtos);
        when(eveApiGateway.getAccountBalances("apiKeyString", 1L, 2L)).thenThrow(new EveApiException("errorCode"));
View Full Code Here

Examples of lv.odylab.evemanage.integration.eveapi.dto.AccountCharacterDto

        return apiIndustryJobDto;
    }

    @Override
    public AccountCharacterDto map(ApiAccountCharacterRow apiAccountCharacterRow, Class<AccountCharacterDto> accountCharacterDtoClass) {
        AccountCharacterDto accountCharacterDto = new AccountCharacterDto();
        accountCharacterDto.setName(apiAccountCharacterRow.getName());
        accountCharacterDto.setCharacterID(apiAccountCharacterRow.getCharacterID());
        accountCharacterDto.setCorporationName(apiAccountCharacterRow.getCorporationName());
        accountCharacterDto.setCorporationID(apiAccountCharacterRow.getCorporationID());
        return accountCharacterDto;
    }
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.