ProjectApi: Add convenience method to get default dashboard

Change-Id: I301d727f24a467f91b99defc60ee146956311049
This commit is contained in:
David Pursehouse
2017-09-15 00:09:16 +09:00
parent d33ed29cf5
commit 15e2932724
4 changed files with 26 additions and 2 deletions

View File

@@ -24,6 +24,12 @@ public class DashboardIT extends AbstractDaemonTest {
@Test
public void defaultDashboardDoesNotExist() throws Exception {
exception.expect(ResourceNotFoundException.class);
gApi.projects().name(project.get()).dashboard("default").get();
gApi.projects().name(project.get()).defaultDashboard().get();
}
@Test
public void dashboardDoesNotExist() throws Exception {
exception.expect(ResourceNotFoundException.class);
gApi.projects().name(project.get()).dashboard("dashboard").get();
}
}