Skip to content

Commit d5ad952

Browse files
committed
fix javadoc for DomainCRD
1 parent 75bd07a commit d5ad952

File tree

1 file changed

+3
-26
lines changed
  • integration-tests/src/test/java/oracle/kubernetes/operator/utils

1 file changed

+3
-26
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/utils/DomainCRD.java

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2019, Oracle Corporation and/or its affiliates. All rights reserved.
2+
// Licensed under the Universal Permissive License v 1.0 as shown at
3+
// http://oss.oracle.com/licenses/upl.
14
package oracle.kubernetes.operator.utils;
25

36
import com.fasterxml.jackson.core.JsonProcessingException;
@@ -14,7 +17,6 @@
1417
import java.nio.file.Files;
1518
import java.nio.file.Path;
1619
import java.nio.file.Paths;
17-
import java.util.HashMap;
1820
import java.util.Map;
1921

2022
/** A Domain CRD utility class to manipulate domain yaml files */
@@ -23,31 +25,6 @@ public class DomainCRD {
2325
private final ObjectMapper objectMapper;
2426
private final JsonNode root;
2527

26-
public static void main(String args[]) throws IOException {
27-
DomainCRD crd = new DomainCRD("c:\\Users\\Sankar\\Downloads\\res.yaml");
28-
29-
Map<String, String> admin = new HashMap();
30-
admin.put("restartVersion", "v1.1");
31-
crd.addObjectNodeToAdminServer(admin);
32-
33-
Map<String, String> domain = new HashMap();
34-
domain.put("restartVersion", "v1.1");
35-
crd.addObjectNodeToDomain(domain);
36-
37-
Map<String, String> cluster = new HashMap();
38-
cluster.put("restartVersion", "v1.1");
39-
crd.addObjectNodeToCluster("cluster-1", cluster);
40-
System.out.println(crd.getYamlTree());
41-
42-
Map<String, String> ms = new HashMap();
43-
ms.put("restartVersion", "v1.1");
44-
ms.put("serverStartPolicy", "IF_NEEDED");
45-
ms.put("serverStartState", "RUNNING");
46-
crd.addObjectNodeToMS("managedserver-1", ms);
47-
48-
System.out.println(crd.getYamlTree());
49-
}
50-
5128
/**
5229
* Constructor to read the yaml file and initialize the root JsonNode with yaml equivalent of JSON
5330
* tree

0 commit comments

Comments
 (0)