new-integration-tests/src/test/java/oracle/weblogic/kubernetes/assertions/impl/Domain.java
public static boolean doesCrdExist() throws ApiException {
    try {
      V1beta1CustomResourceDefinition domainBetaCrd
          = apiextensionsV1beta1Api.readCustomResourceDefinition(
          "domains.weblogic.oracle", null, null, null);
      assertNotNull(domainBetaCrd, "Domain CRD is null");
      return true;
    } catch (ApiException aex) {
      if (aex.getCode() == 404) {
        assertTrue(false, "CRD domains.weblogic.oracle not found");
      } else {
        throw aex;
      }
    }
    return false;
  }
/**
   * Check if the Domain CRD exists.
   *
   * @return true if domains.weblogic.oracle CRD exists otherwise false
   * @throws ApiException when Domain CRD doesn't exist
   */
Check if the Domain CRD exists.
@return true if domains.weblogic.oracle CRD exists otherwise false
@throws ApiException when Domain CRD doesn't exist
Check if the Domain CRD exists . @return true if domains . weblogic . oracle CRD exists otherwise false @throws ApiException when Domain CRD doesn ' t exist
public static boolean doesCrdExist() throws ApiException {
    try {
      V1beta1CustomResourceDefinition domainBetaCrd
          = apiextensionsV1beta1Api.readCustomResourceDefinition(
          "domains.weblogic.oracle", null, null, null);
      assertNotNull(domainBetaCrd, "Domain CRD is null");
      return true;
    } catch (ApiException aex) {
      if (aex.getCode() == 404) {
        assertTrue(false, "CRD domains.weblogic.oracle not found");
      } else {
        throw aex;
      }
    }
    return false;
  }
public static boolean doesCrdExist ( ) throws ApiException { try { V1beta1CustomResourceDefinition domainBetaCrd = apiextensionsV1beta1Api . readCustomResourceDefinition ( "domains.weblogic.oracle" , null , null , null ) ; assertNotNull ( domainBetaCrd , "Domain CRD is null" ) ; return true ; } catch ( ApiException aex ) { if ( aex . getCode ( ) == 404 ) { assertTrue ( false , "CRD domains.weblogic.oracle not found" ) ; } else { throw aex ; } } return false ; }
Check if the Domain CRD exists.
Check if the Domain CRD exists .