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());
}
Aggregations