@Test public void shouldReturnThatHasntNamedDomain() throws OpenShiftException { // precondition // operation Boolean hasDomain = user.hasDomain(DomainTestUtils.createRandomName()); // verification assertFalse(hasDomain); }
@Test public void shouldCreateDomain() throws OpenShiftException { // pre-condition // cannot create domain if there's already one DomainTestUtils.destroyAllDomains(user); // operation String id = DomainTestUtils.createRandomName(); IDomain domain = user.createDomain(id); // verification assertThat(domain.getId()).isEqualTo(id); }