Add gson handler and tests 07/78407/3
authorJim Hahn <jrh3@att.com>
Wed, 13 Feb 2019 15:53:12 +0000 (10:53 -0500)
committerJim Hahn <jrh3@att.com>
Wed, 13 Feb 2019 17:29:39 +0000 (12:29 -0500)
commitc064f5e9ea7e385ae8c730bb9e9fc5fdd45e25d6
treeddf1281d011e5e110085c0c0535c5cde741bcd78
parenteaaf4f237ad0dce620b5385ce8c7424dd01d2c26
Add gson handler and tests

Added JacksonHandler which provides jackson behavior in gson.
Also added classes to facilitate testing of gson serializations.
Added compareGson(xxx, Class).
Removed trailing spaces from some files.
Updated license dates.
Replaced incorrect constant with ${xxx} in json test file.
Fixed typo in test method name.

Change-Id: If05b654d76a4ffc88646f03334be82b32506f28f
Issue-ID: POLICY-1428
Signed-off-by: Jim Hahn <jrh3@att.com>
36 files changed:
gson/src/main/java/org/onap/policy/common/gson/JacksonHandler.java [new file with mode: 0644]
gson/src/test/java/org/onap/policy/common/gson/JacksonHandlerTest.java [new file with mode: 0644]
policy-endpoints/pom.xml
policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/TopicEndpointProxy.java
policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/bus/internal/BusPublisher.java
policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/client/internal/JerseyClient.java
policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/internal/JettyServletServer.java
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/TopicEndpointProxyTest.java
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/bus/internal/BusTopicBaseTest.java
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/bus/internal/InlineBusTopicSinkTest.java
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/bus/internal/InlineDmaapTopicSinkTest.java
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/bus/internal/InlineUebTopicSinkTest.java
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/bus/internal/SingleThreadedBusTopicSourceTest.java
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/bus/internal/SingleThreadedDmaapTopicSourceTest.java
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/bus/internal/SingleThreadedUebTopicSourceTest.java
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/bus/internal/TopicBaseTest.java
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/http/server/test/HttpServerTest.java
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/http/server/test/RestEchoReqResp.java
policy-endpoints/src/test/resources/org/onap/policy/common/endpoints/event/comm/TopicEndpointProxyTest.json [new file with mode: 0644]
policy-endpoints/src/test/resources/org/onap/policy/common/endpoints/event/comm/bus/internal/BusTopicBaseTest.json [new file with mode: 0644]
policy-endpoints/src/test/resources/org/onap/policy/common/endpoints/event/comm/bus/internal/InlineBusTopicSinkTest.json [new file with mode: 0644]
policy-endpoints/src/test/resources/org/onap/policy/common/endpoints/event/comm/bus/internal/InlineDmaapTopicSinkTest.json [new file with mode: 0644]
policy-endpoints/src/test/resources/org/onap/policy/common/endpoints/event/comm/bus/internal/InlineUebTopicSinkTest.json [new file with mode: 0644]
policy-endpoints/src/test/resources/org/onap/policy/common/endpoints/event/comm/bus/internal/SingleThreadedBusTopicSourceTest.json [new file with mode: 0644]
policy-endpoints/src/test/resources/org/onap/policy/common/endpoints/event/comm/bus/internal/SingleThreadedDmaapTopicSourceTest.json [new file with mode: 0644]
policy-endpoints/src/test/resources/org/onap/policy/common/endpoints/event/comm/bus/internal/SingleThreadedUebTopicSourceTest.json [new file with mode: 0644]
policy-endpoints/src/test/resources/org/onap/policy/common/endpoints/event/comm/bus/internal/TopicBaseTest.json [new file with mode: 0644]
policy-endpoints/src/test/resources/org/onap/policy/common/endpoints/http/server/internal/HttpServerTest.json [new file with mode: 0644]
utils-test/pom.xml
utils-test/src/main/java/org/onap/policy/common/utils/gson/GsonSerializer.java [new file with mode: 0644]
utils-test/src/main/java/org/onap/policy/common/utils/gson/GsonTestUtils.java [new file with mode: 0644]
utils-test/src/main/java/org/onap/policy/common/utils/gson/GsonTestUtilsBuilder.java [new file with mode: 0644]
utils-test/src/test/java/org/onap/policy/common/utils/gson/GsonSerializerTest.java [new file with mode: 0644]
utils-test/src/test/java/org/onap/policy/common/utils/gson/GsonTestUtilsBuilderTest.java [new file with mode: 0644]
utils-test/src/test/java/org/onap/policy/common/utils/gson/GsonTestUtilsTest.java [new file with mode: 0644]
utils-test/src/test/resources/org/onap/policy/common/utils/gson/GsonTestUtilsTest.json [new file with mode: 0644]