Search in sources :

Example 1 with AccountDetailInfo

use of com.google.gerrit.server.account.GetDetail.AccountDetailInfo in project gerrit by GerritCodeReview.

the class GetAccountDetailIT method getDetail.

@Test
public void getDetail() throws Exception {
    RestResponse r = adminRestSession.get("/accounts/" + admin.username + "/detail/");
    AccountDetailInfo info = newGson().fromJson(r.getReader(), AccountDetailInfo.class);
    assertAccountInfo(admin, info);
    Account account = accountCache.get(admin.getId()).getAccount();
    assertThat(info.registeredOn).isEqualTo(account.getRegisteredOn());
}
Also used : Account(com.google.gerrit.reviewdb.client.Account) AccountDetailInfo(com.google.gerrit.server.account.GetDetail.AccountDetailInfo) RestResponse(com.google.gerrit.acceptance.RestResponse) AbstractDaemonTest(com.google.gerrit.acceptance.AbstractDaemonTest) Test(org.junit.Test)

Aggregations

AbstractDaemonTest (com.google.gerrit.acceptance.AbstractDaemonTest)1 RestResponse (com.google.gerrit.acceptance.RestResponse)1 Account (com.google.gerrit.reviewdb.client.Account)1 AccountDetailInfo (com.google.gerrit.server.account.GetDetail.AccountDetailInfo)1 Test (org.junit.Test)1