Improve cadi-core coverage 65/48065/1
authorIanHowell <ian.howell@att.com>
Thu, 17 May 2018 15:17:50 +0000 (10:17 -0500)
committerIanHowell <ian.howell@att.com>
Thu, 17 May 2018 15:20:30 +0000 (10:20 -0500)
commit1070cc920c5cfa8af29f83137da79fba28341609
treeb8c1ef0269cf127f65742a489462bf4ae1ee477b
parent9a03e67324d26cc655342be2db68fdd85651b567
Improve cadi-core coverage

* Wrote tests for AUTHZServlet, MapPermConverter, NullPermConverter,
  and PathFilter
* Deleted old test for FCGet - the class is not accessable to JUnits
* Reduced complexity of AUTHZServlet, MapPermConverter, NullPermConverter,
  and PathFilter
* Fixed a NullPointerException in CmdLine and its associated JUnit

Issue-ID: AAF-225
Change-Id: Ifa6453043469cebb30d10a8a9e2bc1d01599a8c8
Signed-off-by: IanHowell <ian.howell@att.com>
12 files changed:
cadi/core/src/main/java/org/onap/aaf/cadi/CmdLine.java
cadi/core/src/main/java/org/onap/aaf/cadi/filter/AUTHZServlet.java
cadi/core/src/main/java/org/onap/aaf/cadi/filter/MapPermConverter.java
cadi/core/src/main/java/org/onap/aaf/cadi/filter/NullPermConverter.java
cadi/core/src/main/java/org/onap/aaf/cadi/filter/PathFilter.java
cadi/core/src/test/java/org/onap/aaf/cadi/filter/test/JU_AUTHZServlet.java [new file with mode: 0644]
cadi/core/src/test/java/org/onap/aaf/cadi/filter/test/JU_AccessGetter.java [new file with mode: 0644]
cadi/core/src/test/java/org/onap/aaf/cadi/filter/test/JU_FCGetTest.java [deleted file]
cadi/core/src/test/java/org/onap/aaf/cadi/filter/test/JU_MapPermConverter.java [new file with mode: 0644]
cadi/core/src/test/java/org/onap/aaf/cadi/filter/test/JU_NullPermConverter.java [new file with mode: 0644]
cadi/core/src/test/java/org/onap/aaf/cadi/filter/test/JU_PathFilter.java [new file with mode: 0644]
cadi/core/src/test/java/org/onap/aaf/cadi/test/JU_CmdLine.java