integration-tests/src/test/java/oracle/kubernetes/operator/utils/TestUtils.java
public static void verifyAfterDeletion(Domain domain) throws Exception {
    final String domainNs = String.class.cast(domain.getDomainMap().get("namespace"));
    final String domainUid = domain.getDomainUid();
    final String domain1LabelSelector = String.format("weblogic.domainUID in (%s)", domainUid);
    final String credentialsName =
        String.class.cast(domain.getDomainMap().get("weblogicCredentialsSecretName"));

    LoggerHelper.getLocal().log(Level.INFO, "After deletion of domain: " + domainUid);
    k8sTestUtils.verifyDomainCrd();
    k8sTestUtils.verifyDomain(domainNs, domainUid, false);
    k8sTestUtils.verifyPods(domainNs, domain1LabelSelector, 0);
    k8sTestUtils.verifyJobs(domain1LabelSelector, 0);
    k8sTestUtils.verifyNoDeployments(domain1LabelSelector);
    k8sTestUtils.verifyNoReplicaSets(domain1LabelSelector);
    k8sTestUtils.verifyServices(domain1LabelSelector, 0);
    k8sTestUtils.verifyPvcs(domain1LabelSelector, 0);
    k8sTestUtils.verifyConfigMaps(domain1LabelSelector, 0);
    k8sTestUtils.verifyNoServiceAccounts(domain1LabelSelector);
    k8sTestUtils.verifyNoRoles(domain1LabelSelector);
    k8sTestUtils.verifyNoRoleBindings(domain1LabelSelector);
    k8sTestUtils.verifySecrets(credentialsName, 0);
    k8sTestUtils.verifyPvs(domain1LabelSelector, 0);
    k8sTestUtils.verifyNoClusterRoles(domain1LabelSelector);
    k8sTestUtils.verifyNoClusterRoleBindings(domain1LabelSelector);
  }
/**
   * verify after deletion.
   * @param domain domain
   * @throws Exception on failure
   */
verify after deletion.
@param domain domain
@throws Exception on failure
verify after deletion . @param domain domain @throws Exception on failure
public static void verifyAfterDeletion(Domain domain) throws Exception {
    final String domainNs = String.class.cast(domain.getDomainMap().get("namespace"));
    final String domainUid = domain.getDomainUid();
    final String domain1LabelSelector = String.format("weblogic.domainUID in (%s)", domainUid);
    final String credentialsName =
        String.class.cast(domain.getDomainMap().get("weblogicCredentialsSecretName"));
    LoggerHelper.getLocal().log(Level.INFO, "After deletion of domain: " + domainUid);
    k8sTestUtils.verifyDomainCrd();
    k8sTestUtils.verifyDomain(domainNs, domainUid, false);
    k8sTestUtils.verifyPods(domainNs, domain1LabelSelector, 0);
    k8sTestUtils.verifyJobs(domain1LabelSelector, 0);
    k8sTestUtils.verifyNoDeployments(domain1LabelSelector);
    k8sTestUtils.verifyNoReplicaSets(domain1LabelSelector);
    k8sTestUtils.verifyServices(domain1LabelSelector, 0);
    k8sTestUtils.verifyPvcs(domain1LabelSelector, 0);
    k8sTestUtils.verifyConfigMaps(domain1LabelSelector, 0);
    k8sTestUtils.verifyNoServiceAccounts(domain1LabelSelector);
    k8sTestUtils.verifyNoRoles(domain1LabelSelector);
    k8sTestUtils.verifyNoRoleBindings(domain1LabelSelector);
    k8sTestUtils.verifySecrets(credentialsName, 0);
    k8sTestUtils.verifyPvs(domain1LabelSelector, 0);
    k8sTestUtils.verifyNoClusterRoles(domain1LabelSelector);
    k8sTestUtils.verifyNoClusterRoleBindings(domain1LabelSelector);
  }
public static void verifyAfterDeletion ( Domain domain ) throws Exception { final String domainNs = String . class . cast ( domain . getDomainMap ( ) . get ( "namespace" ) ) ; final String domainUid = domain . getDomainUid ( ) ; final String domain1LabelSelector = String . format ( "weblogic.domainUID in (%s)" , domainUid ) ; final String credentialsName = String . class . cast ( domain . getDomainMap ( ) . get ( "weblogicCredentialsSecretName" ) ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "After deletion of domain: " + domainUid ) ; k8sTestUtils . verifyDomainCrd ( ) ; k8sTestUtils . verifyDomain ( domainNs , domainUid , false ) ; k8sTestUtils . verifyPods ( domainNs , domain1LabelSelector , 0 ) ; k8sTestUtils . verifyJobs ( domain1LabelSelector , 0 ) ; k8sTestUtils . verifyNoDeployments ( domain1LabelSelector ) ; k8sTestUtils . verifyNoReplicaSets ( domain1LabelSelector ) ; k8sTestUtils . verifyServices ( domain1LabelSelector , 0 ) ; k8sTestUtils . verifyPvcs ( domain1LabelSelector , 0 ) ; k8sTestUtils . verifyConfigMaps ( domain1LabelSelector , 0 ) ; k8sTestUtils . verifyNoServiceAccounts ( domain1LabelSelector ) ; k8sTestUtils . verifyNoRoles ( domain1LabelSelector ) ; k8sTestUtils . verifyNoRoleBindings ( domain1LabelSelector ) ; k8sTestUtils . verifySecrets ( credentialsName , 0 ) ; k8sTestUtils . verifyPvs ( domain1LabelSelector , 0 ) ; k8sTestUtils . verifyNoClusterRoles ( domain1LabelSelector ) ; k8sTestUtils . verifyNoClusterRoleBindings ( domain1LabelSelector ) ; }
verify after deletion.
verify after deletion .