new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/CommonTestUtils.java
public static void createDomainAndVerify(Domain domain, String domainNamespace) {
    LoggingFacade logger = getLogger();
    // create the domain CR
    assertNotNull(domain, "domain is null");
    assertNotNull(domain.getSpec(), "domain spec is null");
    String domainUid = domain.getSpec().getDomainUid();

    logger.info("Creating domain custom resource for domainUid {0} in namespace {1}",
        domainUid, domainNamespace);
    assertTrue(assertDoesNotThrow(() -> createDomainCustomResource(domain),
        String.format("Create domain custom resource failed with ApiException for %s in namespace %s",
            domainUid, domainNamespace)),
        String.format("Create domain custom resource failed with ApiException for %s in namespace %s",
            domainUid, domainNamespace));

    // wait for the domain to exist
    logger.info("Checking for domain custom resource in namespace {0}", domainNamespace);
    withStandardRetryPolicy
        .conditionEvaluationListener(
            condition -> logger.info("Waiting for domain {0} to be created in namespace {1} "
                    + "(elapsed time {2}ms, remaining time {3}ms)",
                domainUid,
                domainNamespace,
                condition.getElapsedTimeInMS(),
                condition.getRemainingTimeInMS()))
        .until(domainExists(domainUid, DOMAIN_VERSION, domainNamespace));
  }
/**
   * Create a domain in the specified namespace and wait up to five minutes until the domain exists.
   *
   * @param domain the oracle.weblogic.domain.Domain object to create domain custom resource
   * @param domainNamespace namespace in which the domain will be created
   */
Create a domain in the specified namespace and wait up to five minutes until the domain exists.
@param domain the oracle.weblogic.domain.Domain object to create domain custom resource
@param domainNamespace namespace in which the domain will be created
Create a domain in the specified namespace and wait up to five minutes until the domain exists . @param domain the oracle . weblogic . domain . Domain object to create domain custom resource @param domainNamespace namespace in which the domain will be created
public static void createDomainAndVerify(Domain domain, String domainNamespace) {
    LoggingFacade logger = getLogger();
    assertNotNull(domain, "domain is null");
    assertNotNull(domain.getSpec(), "domain spec is null");
    String domainUid = domain.getSpec().getDomainUid();
    logger.info("Creating domain custom resource for domainUid {0} in namespace {1}",
        domainUid, domainNamespace);
    assertTrue(assertDoesNotThrow(() -> createDomainCustomResource(domain),
        String.format("Create domain custom resource failed with ApiException for %s in namespace %s",
            domainUid, domainNamespace)),
        String.format("Create domain custom resource failed with ApiException for %s in namespace %s",
            domainUid, domainNamespace));
    logger.info("Checking for domain custom resource in namespace {0}", domainNamespace);
    withStandardRetryPolicy
        .conditionEvaluationListener(
            condition -> logger.info("Waiting for domain {0} to be created in namespace {1} "
                    + "(elapsed time {2}ms, remaining time {3}ms)",
                domainUid,
                domainNamespace,
                condition.getElapsedTimeInMS(),
                condition.getRemainingTimeInMS()))
        .until(domainExists(domainUid, DOMAIN_VERSION, domainNamespace));
  }
public static void createDomainAndVerify ( Domain domain , String domainNamespace ) { LoggingFacade logger = getLogger ( ) ; assertNotNull ( domain , "domain is null" ) ; assertNotNull ( domain . getSpec ( ) , "domain spec is null" ) ; String domainUid = domain . getSpec ( ) . getDomainUid ( ) ; logger . info ( "Creating domain custom resource for domainUid {0} in namespace {1}" , domainUid , domainNamespace ) ; assertTrue ( assertDoesNotThrow ( ( ) -> createDomainCustomResource ( domain ) , String . format ( "Create domain custom resource failed with ApiException for %s in namespace %s" , domainUid , domainNamespace ) ) , String . format ( "Create domain custom resource failed with ApiException for %s in namespace %s" , domainUid , domainNamespace ) ) ; logger . info ( "Checking for domain custom resource in namespace {0}" , domainNamespace ) ; withStandardRetryPolicy . conditionEvaluationListener ( condition -> logger . info ( "Waiting for domain {0} to be created in namespace {1} " + "(elapsed time {2}ms, remaining time {3}ms)" , domainUid , domainNamespace , condition . getElapsedTimeInMS ( ) , condition . getRemainingTimeInMS ( ) ) ) . until ( domainExists ( domainUid , DOMAIN_VERSION , domainNamespace ) ) ; }
Create a domain in the specified namespace and wait up to five minutes until the domain exists.
Create a domain in the specified namespace and wait up to five minutes until the domain exists .
// create the domain CR // wait for the domain to exist