integration-tests/src/test/java/oracle/kubernetes/operator/utils/K8sTestUtils.java
public void verifyDomain(String namespace, String domainUid, boolean existed) throws Exception {
    try {
      // TODO all resources may be derived from the domain object.
      Object domainObject =
          customObjectsApi.getNamespacedCustomObject(
              "weblogic.oracle", "v2", namespace, "domains", domainUid);

      assertTrue(existed, "Domain exists");
    } catch (ApiException aex) {
      if (aex.getCode() == 404) {
        assertTrue(!existed, String.format("Expected CRD domain existed in %s.", namespace));
      } else {
        throw aex;
      }
    }
  }
/**
   * verify domain.
   * @param namespace namespace
   * @param domainUid domain UID
   * @param existed existed flag
   * @throws Exception on failure
   */
verify domain.
@param namespace namespace
@param domainUid domain UID
@param existed existed flag
@throws Exception on failure
verify domain . @param namespace namespace @param domainUid domain UID @param existed existed flag @throws Exception on failure
public void verifyDomain(String namespace, String domainUid, boolean existed) throws Exception {
    try {
      Object domainObject =
          customObjectsApi.getNamespacedCustomObject(
              "weblogic.oracle", "v2", namespace, "domains", domainUid);
      assertTrue(existed, "Domain exists");
    } catch (ApiException aex) {
      if (aex.getCode() == 404) {
        assertTrue(!existed, String.format("Expected CRD domain existed in %s.", namespace));
      } else {
        throw aex;
      }
    }
  }
public void verifyDomain ( String namespace , String domainUid , boolean existed ) throws Exception { try { Object domainObject = customObjectsApi . getNamespacedCustomObject ( "weblogic.oracle" , "v2" , namespace , "domains" , domainUid ) ; assertTrue ( existed , "Domain exists" ) ; } catch ( ApiException aex ) { if ( aex . getCode ( ) == 404 ) { assertTrue ( ! existed , String . format ( "Expected CRD domain existed in %s." , namespace ) ) ; } else { throw aex ; } } }
verify domain.
verify domain .
// TODO all resources may be derived from the domain object.