Package com.atlassian.jira.rest.client.api.domain

Examples of com.atlassian.jira.rest.client.api.domain.RoleActor


    Assert.assertEquals("Users", role.getName());
    Assert.assertEquals("A project role that represents users in a project", role.getDescription());
    Assert.assertNotNull(role.getActors());
    Assert.assertThat(role.getActors(),
        IsIterableContainingInAnyOrder
            .containsInAnyOrder(new RoleActor(10020l, "jira-users", "atlassian-group-role-actor", "jira-users",
                toUri("http://localhost:2990/jira/secure/useravatar?size=small&avatarId=10083")
            ),
                new RoleActor(10030l, "jira-superuser", "atlassian-user-role-actor", "superuser", null)
            )
    );
  }
View Full Code Here


    Assert.assertEquals(10000, role.getId().longValue());
    Assert.assertEquals("A project role that represents users in a project", role.getDescription());
    Assert.assertThat(
        role.getActors(),
        IsIterableContainingInAnyOrder.containsInAnyOrder(
            new RoleActor(null, "Administrator", "atlassian-user-role-actor", "admin",
                baseJiraURI.resolve("/jira/secure/useravatar?size=small&ownerId=admin&avatarId=10054")
            ),
            new RoleActor(10020l, "jira-users", "atlassian-group-role-actor", "jira-users",
                baseJiraURI.resolve("/jira/secure/useravatar?size=small&avatarId=10083")
            ),
            new RoleActor(10030l, "Wojciech Seliga", "atlassian-user-role-actor", "wseliga",
                baseJiraURI.resolve("/jira/secure/useravatar?size=small&avatarId=10082"))
        )
    );
  }
View Full Code Here

TOP

Related Classes of com.atlassian.jira.rest.client.api.domain.RoleActor

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.