@Test public void shouldReturnNoDomains() throws OpenShiftException { // precondition DomainTestUtils.destroyAllDomains(user); // operation List<IDomain> domains = user.getDomains(); // verification assertThat(domains).isEmpty(); }
@Test public void shouldReturnDomains() throws OpenShiftException { // precondition DomainTestUtils.ensureHasDomain(user); // operation List<IDomain> domains = user.getDomains(); // verification assertThat(domains).isNotEmpty(); }