new-integration-tests/src/test/java/oracle/weblogic/kubernetes/assertions/impl/Domain.java
public static Callable<Boolean> doesDomainExist(String domainUid, String domainVersion, String namespace) {
    return () -> {
      Object domainObject = null;
      try {
        domainObject
            = customObjectsApi.getNamespacedCustomObject(
            "weblogic.oracle", domainVersion, namespace, "domains", domainUid);
      } catch (ApiException apex) {
        getLogger().info(apex.getMessage());
      }
      boolean domainExist = (domainObject != null);
      getLogger().info("Domain Object exists : " + domainExist);
      return domainExist;
    };
  }
/**
   * Checks if weblogic.oracle CRD domain object exists.
   *
   * @param domainUid domain UID of the domain object
   * @param domainVersion version value for Kind Domain
   * @param namespace in which the domain object exists
   * @return true if domain object exists otherwise false
   */
Checks if weblogic.oracle CRD domain object exists.
@param domainUid domain UID of the domain object
@param domainVersion version value for Kind Domain
@param namespace in which the domain object exists
@return true if domain object exists otherwise false
Checks if weblogic . oracle CRD domain object exists . @param domainUid domain UID of the domain object @param domainVersion version value for Kind Domain @param namespace in which the domain object exists @return true if domain object exists otherwise false
public static Callable<Boolean> doesDomainExist(String domainUid, String domainVersion, String namespace) {
    return () -> {
      Object domainObject = null;
      try {
        domainObject
            = customObjectsApi.getNamespacedCustomObject(
            "weblogic.oracle", domainVersion, namespace, "domains", domainUid);
      } catch (ApiException apex) {
        getLogger().info(apex.getMessage());
      }
      boolean domainExist = (domainObject != null);
      getLogger().info("Domain Object exists : " + domainExist);
      return domainExist;
    };
  }
public static Callable < Boolean > doesDomainExist ( String domainUid , String domainVersion , String namespace ) { return ( ) -> { Object domainObject = null ; try { domainObject = customObjectsApi . getNamespacedCustomObject ( "weblogic.oracle" , domainVersion , namespace , "domains" , domainUid ) ; } catch ( ApiException apex ) { getLogger ( ) . info ( apex . getMessage ( ) ) ; } boolean domainExist = ( domainObject != null ) ; getLogger ( ) . info ( "Domain Object exists : " + domainExist ) ; return domainExist ; } ; }
Checks if weblogic.oracle CRD domain object exists.
Checks if weblogic . oracle CRD domain object exists .