Esempio n. 1
0
 public byte[] getResourceData(String name) {
   Assert.that(VM.isHosted() || VM.getCurrentIsolate().getLeafSuite() == suite);
   try {
     byte[] bytes = classPath.getBytes(name);
     ResourceFile resourceFile = new ResourceFile(name, bytes);
     suite.installResource(resourceFile);
     return bytes;
   } catch (IOException e) {
     return null;
   }
 }