Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove using of DMAAP client from ONAP
[nonrtric.git]
/
policy-agent
/
src
/
test
/
java
/
org
/
oransc
/
policyagent
/
clients
/
A1ClientHelper.java
diff --git
a/policy-agent/src/test/java/org/oransc/policyagent/clients/A1ClientHelper.java
b/policy-agent/src/test/java/org/oransc/policyagent/clients/A1ClientHelper.java
index
1855949
..
722fea7
100644
(file)
--- a/
policy-agent/src/test/java/org/oransc/policyagent/clients/A1ClientHelper.java
+++ b/
policy-agent/src/test/java/org/oransc/policyagent/clients/A1ClientHelper.java
@@
-20,10
+20,6
@@
package org.oransc.policyagent.clients;
package org.oransc.policyagent.clients;
-import com.google.gson.FieldNamingPolicy;
-import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
-
import java.util.Arrays;
import java.util.Vector;
import java.util.Arrays;
import java.util.Vector;
@@
-38,19
+34,10
@@
import org.oransc.policyagent.repository.Ric;
import reactor.core.publisher.Mono;
public class A1ClientHelper {
import reactor.core.publisher.Mono;
public class A1ClientHelper {
- private static Gson gson = new GsonBuilder() //
- .setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_DASHES) //
- .create();
private A1ClientHelper() {
}
private A1ClientHelper() {
}
- protected static <T> String createInputJsonString(T inputParams) {
- JSONObject inputJson = new JSONObject();
- inputJson.put("input", gson.toJson(inputParams));
- return inputJson.toString();
- }
-
protected static Mono<String> createOutputJsonResponse(String key, String value) {
JSONObject paramsJson = new JSONObject();
paramsJson.put(key, value);
protected static Mono<String> createOutputJsonResponse(String key, String value) {
JSONObject paramsJson = new JSONObject();
paramsJson.put(key, value);
@@
-76,6
+63,7
@@
public class A1ClientHelper {
.ric(createRic(nearRtRicUrl)) //
.type(createPolicyType(type)) //
.lastModified("now") //
.ric(createRic(nearRtRicUrl)) //
.type(createPolicyType(type)) //
.lastModified("now") //
+ .isTransient(false) //
.build();
}
.build();
}