operator/src/test/java/oracle/kubernetes/operator/DomainProcessorTestSetup.java
public static Domain createTestDomain() {
    DomainSpec ds = new DomainSpec()
            .withWebLogicCredentialsSecret(new V1SecretReference().name(SECRET_NAME).namespace(NS));
    ds.setNodeName(NODE_NAME);
    return new Domain()
        .withApiVersion(KubernetesConstants.DOMAIN_GROUP + "/" + KubernetesConstants.DOMAIN_VERSION)
        .withKind(KubernetesConstants.DOMAIN)
        .withMetadata(withTimestamps(new V1ObjectMeta().name(UID).namespace(NS).uid(KUBERNETES_UID)))
        .withSpec(ds);
  }
/**
   * Create a basic domain object that meets the needs of the domain processor.
   *
   * @return a domain
   */
Create a basic domain object that meets the needs of the domain processor.
@return a domain
Create a basic domain object that meets the needs of the domain processor . @return a domain
public static Domain createTestDomain() {
    DomainSpec ds = new DomainSpec()
            .withWebLogicCredentialsSecret(new V1SecretReference().name(SECRET_NAME).namespace(NS));
    ds.setNodeName(NODE_NAME);
    return new Domain()
        .withApiVersion(KubernetesConstants.DOMAIN_GROUP + "/" + KubernetesConstants.DOMAIN_VERSION)
        .withKind(KubernetesConstants.DOMAIN)
        .withMetadata(withTimestamps(new V1ObjectMeta().name(UID).namespace(NS).uid(KUBERNETES_UID)))
        .withSpec(ds);
  }
public static Domain createTestDomain ( ) { DomainSpec ds = new DomainSpec ( ) . withWebLogicCredentialsSecret ( new V1SecretReference ( ) . name ( SECRET_NAME ) . namespace ( NS ) ) ; ds . setNodeName ( NODE_NAME ) ; return new Domain ( ) . withApiVersion ( KubernetesConstants . DOMAIN_GROUP + "/" + KubernetesConstants . DOMAIN_VERSION ) . withKind ( KubernetesConstants . DOMAIN ) . withMetadata ( withTimestamps ( new V1ObjectMeta ( ) . name ( UID ) . namespace ( NS ) . uid ( KUBERNETES_UID ) ) ) . withSpec ( ds ) ; }
Create a basic domain object that meets the needs of the domain processor.
Create a basic domain object that meets the needs of the domain processor .