Add method to return resource directory contents 14/100214/4
authorliamfallon <liam.fallon@est.tech>
Fri, 10 Jan 2020 20:27:22 +0000 (20:27 +0000)
committerJim Hahn <jrh3@att.com>
Mon, 13 Jan 2020 14:56:13 +0000 (14:56 +0000)
commit04061f9c4b04f43c55ef190a6e4afc9b3dd203d7
tree47663b94715ccf29602e7b7a05d0f5d484336a28
parent8cfa59063447343d51aba60399f6279d24589777
Add method to return resource directory contents

In order to avoid hard coding the policy types and policies that are in
the example directories into unit test cases, and in order to
automatically pick up added and removed policy types and policies, it
would be good to read the contents of resource directories at run time
in unit tests. This change brings in that functionality into
ResourceUtils.

Issue-ID: POLICY-2315
Change-Id: I601718828aad0f065dbbaa1f5af8d0a0f133f44d
Signed-off-by: liamfallon <liam.fallon@est.tech>
utils/src/main/java/org/onap/policy/common/utils/resources/ResourceUtils.java
utils/src/test/java/org/onap/policy/common/utils/resources/ResourceUtilsTest.java