integration-tests/src/test/java/oracle/kubernetes/operator/utils/TestUtils.java
public static void checkDomainDeleted(String domainUid, String domainNS) throws Exception {

    StringBuffer cmd = new StringBuffer();
    cmd.append("kubectl get domain ")
        .append(domainUid)
        .append(" -n ")
        .append(domainNS)
        .append(" | egrep ")
        .append(domainUid)
        .append(" | wc -l");

    checkCmdInLoopForDelete(cmd.toString(), "\"" + domainUid + "\" not found", domainUid);
  }
/**
   * check domain is deleted.
   * @param domainUid domain UID
   * @param domainNS namespace
   * @throws Exception on failure
   */
check domain is deleted.
@param domainUid domain UID
@param domainNS namespace
@throws Exception on failure
check domain is deleted . @param domainUid domain UID @param domainNS namespace @throws Exception on failure
public static void checkDomainDeleted(String domainUid, String domainNS) throws Exception {
    StringBuffer cmd = new StringBuffer();
    cmd.append("kubectl get domain ")
        .append(domainUid)
        .append(" -n ")
        .append(domainNS)
        .append(" | egrep ")
        .append(domainUid)
        .append(" | wc -l");
    checkCmdInLoopForDelete(cmd.toString(), "\"" + domainUid + "\" not found", domainUid);
  }
public static void checkDomainDeleted ( String domainUid , String domainNS ) throws Exception { StringBuffer cmd = new StringBuffer ( ) ; cmd . append ( "kubectl get domain " ) . append ( domainUid ) . append ( " -n " ) . append ( domainNS ) . append ( " | egrep " ) . append ( domainUid ) . append ( " | wc -l" ) ; checkCmdInLoopForDelete ( cmd . toString ( ) , "\"" + domainUid + "\" not found" , domainUid ) ; }
check domain is deleted.
check domain is deleted .