91e3807a79013e831d6c3671fec1fafe9c1db50d
[sdc.git] /
1 package org.openecomp.sdc.vendorsoftwareproduct.impl.orchestration.csar.validation;
2
3 import org.apache.commons.io.IOUtils;
4
5 import java.io.IOException;
6 import java.io.InputStream;
7
8 /**
9  * Provides util methods for Validation Test classes.
10  */
11
12 class ValidatorUtil {
13
14     private ValidatorUtil(){
15
16     }
17
18     public static byte[] getFileResource(String filePath) throws IOException{
19         InputStream inputStream = ClassLoader.class.getClass().getResourceAsStream(filePath);
20         return IOUtils.toByteArray(inputStream);
21     }
22 }