walk VF module names 05/62205/7
authorjh7358 <jh7358@att.com>
Thu, 23 Aug 2018 21:00:50 +0000 (17:00 -0400)
committerJim Hahn <jrh3@att.com>
Thu, 23 Aug 2018 22:40:43 +0000 (18:40 -0400)
commit51e88a932274a3ff8a93996332bb4f1d55d4a773
tree2328dbc3e54fbf29fffa6ebe10e5dad4837a83f4
parent5bb419efe574df172555263110f9492980f5d1e0
walk VF module names

Added code to walk the VF modules to count the number of modules and
to generate the new module instance name.
Added comment to test method.
Fix checkstyle errors.
Read json files instead of resources.
Removed checkstyle plugin from aai pom, as it continues to barf every
time I use some automated feature of Eclipse.
Use Files.readAllBytes() instead of IoUtils.toString(uri).
Try concatenating file path.
Turned out to be a problem with file name case sensitivity - renamed
the file.

Change-Id: I1ce98d846dfa1d29e109b161c869108425d29771
Issue-ID: POLICY-1037
Signed-off-by: Jim Hahn <jrh3@att.com>
controlloop/common/model-impl/aai/pom.xml
controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AaiNqResponseWrapper.java
controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AaiNqResponseWrapperTest.java
controlloop/common/model-impl/aai/src/test/resources/org/onap/policy/aai/AaiNqResponseWrapper-NoItems.json [new file with mode: 0644]
controlloop/common/model-impl/aai/src/test/resources/org/onap/policy/aai/AaiNqResponseWrapper-NoModules.json [new file with mode: 0644]
controlloop/common/model-impl/aai/src/test/resources/org/onap/policy/aai/AaiNqResponseWrapper-NoNames.json [new file with mode: 0644]
controlloop/common/model-impl/aai/src/test/resources/org/onap/policy/aai/AaiNqResponseWrapper-Vserver.json [new file with mode: 0644]