X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Fonap%2Faai%2Fmodelloader%2Futil%2FArtifactTestUtils.java;h=50074f10d9542b663b57a0591111fe446d2520b8;hb=refs%2Fchanges%2F06%2F73706%2F1;hp=752f389f44f8a7e3369e19ebe0aef895713a5127;hpb=c5aea4a8bc398fc1c6220875e55b9520fd7f7524;p=aai%2Fmodel-loader.git diff --git a/src/test/java/org/onap/aai/modelloader/util/ArtifactTestUtils.java b/src/test/java/org/onap/aai/modelloader/util/ArtifactTestUtils.java index 752f389..50074f1 100644 --- a/src/test/java/org/onap/aai/modelloader/util/ArtifactTestUtils.java +++ b/src/test/java/org/onap/aai/modelloader/util/ArtifactTestUtils.java @@ -34,6 +34,15 @@ public class ArtifactTestUtils { ArtifactTestUtils.loadResourceAsString(resource)); } + /** + * Finds the resource with the given name and returns it as an array of bytes. + * + * @param resourceName + * the /-separated path to the resource + * @return the requested resource contents as a byte array + * @throws IOException + * if the resource could not be found (using current privileges) + */ public byte[] loadResource(String resourceName) throws IOException { URL resource = getResource(resourceName); if (resource != null) {