Package lv.odylab.evemanage.domain.eve

Examples of lv.odylab.evemanage.domain.eve.Character


        apiKeyCharacterInfos.add(apiKeyCharacterInfo);
        otherApiKey.setCharacterInfos(apiKeyCharacterInfos);
        otherApiKeys.add(otherApiKey);

        ArrayList<Character> characters = new ArrayList<Character>();
        Character character = new Character();
        character.setApiKey(apiKeyKey);
        character.setCharacterID(1L);
        characters.add(character);

        when(apiKeyDao.getAll(userKey)).thenReturn(otherApiKeys);
        when(characterDao.getAll(apiKeyKey, userKey)).thenReturn(characters);
        eveSynchronizationService.synchronizeDeleteApiKey(apiKeyKey, userKey);
View Full Code Here


    }

    @Test
    public void testLaunchForUpdate_NoCorporation() {
        when(googleAppEngineServices.getQueue("default")).thenReturn(queue);
        Character character = new Character();
        character.setCharacterID(1L);
        character.setName("characterName");
        List<PriceSet> priceSets = new ArrayList<PriceSet>();
        PriceSet priceSet1 = new PriceSet();
        priceSet1.setId(4L);
        PriceSet priceSet2 = new PriceSet();
        priceSet2.setId(5L);
View Full Code Here

    }

    @Test
    public void testLaunchForUpdate_NoAlliance() {
        when(googleAppEngineServices.getQueue("default")).thenReturn(queue);
        Character character = new Character();
        character.setCharacterID(1L);
        character.setName("characterName");
        character.setCorporationID(2L);
        character.setCorporationName("corporationName");
        character.setCorporationTicker("corporationTicker");
        List<PriceSet> priceSets = new ArrayList<PriceSet>();
        PriceSet priceSet1 = new PriceSet();
        priceSet1.setId(4L);
        PriceSet priceSet2 = new PriceSet();
        priceSet2.setId(5L);
View Full Code Here

        Key<User> userKey = new Key<User>(User.class, 1);
        List<ApiKey> apiKeys = new ArrayList<ApiKey>();
        ApiKey apiKey = new ApiKey();
        apiKeys.add(apiKey);
        List<Character> characters = new ArrayList<Character>();
        Character character1 = new Character();
        Character character2 = new Character();
        characters.add(character1);
        characters.add(character2);

        when(apiKeyDao.getAll(userKey)).thenReturn(apiKeys);
        when(characterDao.getAll(userKey)).thenReturn(characters);
View Full Code Here

        ApiKey apiKey = new ApiKey();
        apiKeys.add(apiKey);
        apiKey.setCharacterInfos(new ArrayList<ApiKeyCharacterInfo>());
        apiKey.setValid(Boolean.TRUE);
        List<Character> characters = new ArrayList<Character>();
        Character character1 = new Character();
        character1.setCorporationID(1L);
        character1.setCorporationName("corporationName");
        List<String> corporationTitles = new ArrayList<String>();
        corporationTitles.add("title1");
        character1.setCorporationTitles(corporationTitles);
        character1.setCorporationTicker("corporationTicker");
        character1.setAllianceID(2L);
        character1.setAllianceName("allianceName");
        Character character2 = new Character();
        characters.add(character1);
        characters.add(character2);

        when(apiKeyDao.getAll(userKey)).thenReturn(apiKeys);
        when(characterDao.getAll(userKey)).thenReturn(characters);
View Full Code Here

    }

    @Test
    public void testSynchronizeCreateCharacter() {
        Key<User> userKey = new Key<User>(User.class, 1);
        Character character = new Character();
        characterSynchronizationService.synchronizeCreateCharacter(character, userKey);
        verify(userSynchronizationService).synchronizeMainCharacter(userKey);
    }
View Full Code Here

    @Test
    public void testSynchronizeDetachCharacters() {
        Key<User> userKey = new Key<User>(User.class, 1);
        List<Character> characters = new ArrayList<Character>();
        Character character1 = new Character();
        Character character2 = new Character();
        characters.add(character1);
        characters.add(character2);
        characterSynchronizationService.synchronizeDetachCharacters(characters, userKey);
        verify(updateBlueprintTaskLauncher).launchForDetach(1L, character1);
        verify(updateBlueprintTaskLauncher).launchForDetach(1L, character2);
View Full Code Here

    @Test
    public void testSynchronizeUpdateCharacters() {
        Key<User> userKey = new Key<User>(User.class, 1);
        List<Character> characters = new ArrayList<Character>();
        Character character1 = new Character();
        Character character2 = new Character();
        characters.add(character1);
        characters.add(character2);
        characterSynchronizationService.synchronizeUpdateCharacters(characters, userKey);
        verify(updateBlueprintTaskLauncher).launchForUpdate(1L, character1);
        verify(updateBlueprintTaskLauncher).launchForUpdate(1L, character2);
View Full Code Here

        characterInfos.add(characterInfo1);
        characterInfos.add(characterInfo2);
        user.setCharacterInfos(characterInfos);

        when(userDao.get(userKey)).thenReturn(user);
        when(characterDao.get(new Key<Character>(Character.class, 2L))).thenReturn(new Character());
        userManagementService.setMainCharacter("characterName2", userKey);

        verify(userDao, times(1)).put(any(lv.odylab.evemanage.domain.user.User.class));
        assertEquals(characterInfo2, user.getMainCharacterInfo());
    }
View Full Code Here

    @Test
    public void testGetAvailableNewCharacterNames() {
        Key<User> userKey = new Key<User>(User.class, 1);
        List<Character> characters = new ArrayList<Character>();
        Character character1 = new Character();
        Character character2 = new Character();
        character1.setName("hcydo");
        character2.setName("pcydo");
        characters.add(character1);
        characters.add(character2);
        List<ApiKey> apiKeys = new ArrayList<ApiKey>();
        ApiKey apiKey1 = new ApiKey();
        List<ApiKeyCharacterInfo> apiKeyCharacterInfos1 = new ArrayList<ApiKeyCharacterInfo>();
View Full Code Here

TOP

Related Classes of lv.odylab.evemanage.domain.eve.Character

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.