summaryrefslogtreecommitdiffstats
path: root/reception/src/test/resources
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2021-03-09 12:16:03 +0000
committeradheli.tavares <adheli.tavares@est.tech>2021-03-10 10:14:53 +0000
commitae963fcd018592800f96e9199f848a3fd738f38e (patch)
treeb8ffd7497e73df05c85d3d598e1baad23bddbbb9 /reception/src/test/resources
parenta2740a32f308b7385a44161ec40e25d72e4ef5e0 (diff)
Add code coverage for reception package
Issue-ID: POLICY-3090 Change-Id: I79bf20363644fe39ed532399ecf59740192f7bb9 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'reception/src/test/resources')
-rw-r--r--reception/src/test/resources/EmptyClassName.json3
-rw-r--r--reception/src/test/resources/NullClassName.json5
-rw-r--r--reception/src/test/resources/PolicyDecoderConfiguration.json7
-rw-r--r--reception/src/test/resources/ReceptionHandlerConfiguration.json8
-rw-r--r--reception/src/test/resources/WrongClassName.json3
5 files changed, 26 insertions, 0 deletions
diff --git a/reception/src/test/resources/EmptyClassName.json b/reception/src/test/resources/EmptyClassName.json
new file mode 100644
index 00000000..11ef5c4c
--- /dev/null
+++ b/reception/src/test/resources/EmptyClassName.json
@@ -0,0 +1,3 @@
+{
+ "parameterClassName": ""
+}
diff --git a/reception/src/test/resources/NullClassName.json b/reception/src/test/resources/NullClassName.json
new file mode 100644
index 00000000..fc65c1bd
--- /dev/null
+++ b/reception/src/test/resources/NullClassName.json
@@ -0,0 +1,5 @@
+{
+ "parameters": {
+ "param1": "value"
+ }
+}
diff --git a/reception/src/test/resources/PolicyDecoderConfiguration.json b/reception/src/test/resources/PolicyDecoderConfiguration.json
new file mode 100644
index 00000000..80a6dcab
--- /dev/null
+++ b/reception/src/test/resources/PolicyDecoderConfiguration.json
@@ -0,0 +1,7 @@
+{
+ "parameterClassName": "org.onap.policy.distribution.reception.testclasses.DummyPolicyDecoderParameterGroup",
+ "parameters": {
+ "policyName": "SamplePolicy",
+ "policyType": "DUMMY"
+ }
+}
diff --git a/reception/src/test/resources/ReceptionHandlerConfiguration.json b/reception/src/test/resources/ReceptionHandlerConfiguration.json
new file mode 100644
index 00000000..75d157b2
--- /dev/null
+++ b/reception/src/test/resources/ReceptionHandlerConfiguration.json
@@ -0,0 +1,8 @@
+{
+ "parameterClassName": "org.onap.policy.distribution.reception.testclasses.DummyReceptionHandlerParameterGroup",
+ "parameters": {
+ "myStringParameter": "stringValue",
+ "myIntegerParameter": 20,
+ "myBooleanParameter": true
+ }
+}
diff --git a/reception/src/test/resources/WrongClassName.json b/reception/src/test/resources/WrongClassName.json
new file mode 100644
index 00000000..98beb411
--- /dev/null
+++ b/reception/src/test/resources/WrongClassName.json
@@ -0,0 +1,3 @@
+{
+ "parameterClassName": "org.onap.policy.distribution.reception.testclasses.NotExistentClass"
+}