Search in sources :

Example 1 with RestSession

use of com.google.gerrit.acceptance.RestSession in project gerrit by GerritCodeReview.

the class ImpersonationIT method setUp.

@Before
public void setUp() throws Exception {
    anonRestSession = new RestSession(server, null);
    admin2 = accounts.admin2();
    GroupInput gi = new GroupInput();
    gi.name = name("New-Group");
    gi.members = ImmutableList.of(user.id.toString());
    newGroup = gApi.groups().create(gi).get();
}
Also used : GroupInput(com.google.gerrit.extensions.api.groups.GroupInput) RestSession(com.google.gerrit.acceptance.RestSession) Before(org.junit.Before)

Aggregations

RestSession (com.google.gerrit.acceptance.RestSession)1 GroupInput (com.google.gerrit.extensions.api.groups.GroupInput)1 Before (org.junit.Before)1