197 198 } 199 200 private static void test(List<String> entries) throws Exception { 201 TestArchive arch = new TestArchive("bad", entries); 202 Set<Archive> archives = new HashSet<>(); 203 archives.add(arch); 204 ImageBuilder noopBuilder = new ImageBuilder() { 205 206 @Override 207 public DataOutputStream getJImageOutputStream() { 208 return new DataOutputStream(new ByteArrayOutputStream()); 209 } 210 211 @Override 212 public ExecutableImage getExecutableImage() { 213 return null; 214 } 215 216 @Override 217 public void storeFiles(Pool content, String bom) { 218 219 } 220 221 }; 222 223 ImagePluginStack stack = new ImagePluginStack(noopBuilder, Collections.emptyList(), 224 null, Collections.emptyList(), ""); 225 226 ImageFileCreator.create(archives, ByteOrder.nativeOrder(), stack); 227 } 228 } | 197 198 } 199 200 private static void test(List<String> entries) throws Exception { 201 TestArchive arch = new TestArchive("bad", entries); 202 Set<Archive> archives = new HashSet<>(); 203 archives.add(arch); 204 ImageBuilder noopBuilder = new ImageBuilder() { 205 206 @Override 207 public DataOutputStream getJImageOutputStream() { 208 return new DataOutputStream(new ByteArrayOutputStream()); 209 } 210 211 @Override 212 public ExecutableImage getExecutableImage() { 213 return null; 214 } 215 216 @Override 217 public void storeFiles(Pool content) { 218 } 219 }; 220 221 ImagePluginStack stack = new ImagePluginStack(noopBuilder, Collections.emptyList(), 222 null, Collections.emptyList()); 223 224 ImageFileCreator.create(archives, ByteOrder.nativeOrder(), stack); 225 } 226 } |