Examples of RoleActor


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

    assertEquals(TestUtil.toUri("http://localhost:2990/jira/rest/api/2/project/TST/role/10000"), role.getSelf());
    assertEquals("Users", role.getName());
    assertEquals("A project role that represents users in a project", role.getDescription());
    assertNotNull(role.getActors());
    assertThat(role.getActors(),
        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

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

    assertEquals(10000, role.getId().longValue());
    assertEquals("A project role that represents users in a project", role.getDescription());
    assertThat(
        role.getActors(),
        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
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.