Package com.capra.integration.asana.model

Examples of com.capra.integration.asana.model.AsanaTask


        testDataCleanUp.clean();
    }

    @Test
    public void testTaskAddFollowers() {
        AsanaTask asanaTask = asanaClient.createTask(new AsanaTaskCreate(TestConfigurationSource.getWorkspaceId(), "task"));
        testDataCleanUp.addTask(asanaTask.getId());
        AsanaUser asanaUser = asanaClient.getMe();
        asanaClient.taskAddFollower(asanaTask.getId(), asanaUser.getId());

        asanaTask = asanaClient.getTask(asanaTask.getId());
        List<AsanaIdentity> followers = asanaTask.getFollowers();
        Assert.assertFalse(followers.isEmpty());

        AsanaIdentity asanaIdentity = followers.get(0);
        Assert.assertEquals(asanaIdentity.getId(), asanaUser.getId());
    }
View Full Code Here

TOP

Related Classes of com.capra.integration.asana.model.AsanaTask

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.