summaryrefslogtreecommitdiffstats
path: root/reception/src/test/resources
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2021-03-10 18:08:22 +0000
committerGerrit Code Review <gerrit@onap.org>2021-03-10 18:08:22 +0000
commitd1789b584f7fb2d28a8c0ee50202d48d54b8a77e (patch)
treece50d01a84e3e72dcc32deff0b5f9abfa6529846 /reception/src/test/resources
parent417d39b544bef34bf97606f2e6279c293dbe6bec (diff)
parentae963fcd018592800f96e9199f848a3fd738f38e (diff)
Merge "Add code coverage for reception package"
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"
+}