use of com.google.gerrit.extensions.api.projects.DashboardInfo in project gerrit by GerritCodeReview.
the class DashboardIT method setDefaultDashboard.
@Test
public void setDefaultDashboard() throws Exception {
DashboardInfo info = createTestDashboard();
assertThat(info.isDefault).isNull();
project().dashboard(info.id).setDefault();
assertThat(project().dashboard(info.id).get().isDefault).isTrue();
assertThat(project().defaultDashboard().get().id).isEqualTo(info.id);
}
Aggregations