Add common coder classes

Added coder classes as a common utility that can be used to encode
and decode json data.  Currently, it uses gson, but that can be
changed.

Separated the Coder interface from implementation.

Used assertSame to compare references.
Used numbers instead of strings so don't have to deal with escaping quotes
in the test cases.

Change-Id: Iea9001d2adc5a3150b3367619b5f43e96b5f8b41
Issue-ID: POLICY-1444
Signed-off-by: Jim Hahn <jrh3@att.com>
6 files changed
tree: 47e431410f7ad3f0fc575ebf5fc8ed42b52e7bba
  1. capabilities/
  2. common-logging/
  3. common-parameters/
  4. gson/
  5. integrity-audit/
  6. integrity-monitor/
  7. policy-endpoints/
  8. project-configs/
  9. utils/
  10. utils-test/
  11. .gitattributes
  12. .gitignore
  13. .gitreview
  14. INFO.yaml
  15. LICENSE.txt
  16. pom.xml
  17. README.md
  18. version.properties
README.md

Copyright 2018 AT&T Intellectual Property. All rights reserved. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode

This source repository contains ONAP common code, which is shared by 'policy-drools-pdp' and 'policy-engine'. To build it:

  1. using Maven 3
  2. git clone http://gerrit.onap.org/r/oparent and copy oparent/settings.xml to ~/.m2
  3. mvn clean install