CompressFileOperationsImpl implements CompressFileOperations { @Override public FileTree arTree(Object arPath) { File file = fileOperations.file(arPath); ArFileTree arFileTree = new ArFileTree(file, f -> new ArArchiveInputStream(new FileInputStream(f)), getExpandDir(), fileSystem, directoryFileTreeFactory, fileHasher); return new FileTreeAdapter(arFileTree, patternSetFactory); } CompressFileOperationsImpl(ProjectInternal project); @Override FileTree arTree(Object arPath); @Override FileTree arjTree(Object arjFile); @Override FileTree arjTree(Object arjFile, String charsetName); @Override FileTree cpioTree(Object cpioFile); @Override FileTree cpioTree(Object cpioFile, int blockSize); @Override FileTree cpioTree(Object cpioFile, String encoding); @Override FileTree cpioTree(Object cpioFile, int blockSize, String encoding); @Override FileTree sevenZipTree(Object sevenZipFile); @Override FileTree sevenZipTree(Object sevenZipFile, char[] password); @Override FileTree dumpTree(Object dumpFile); @Override FileTree dumpTree(Object dumpFile, String encoding);  }
@Test @Ignore public void arTree() { URL resource = getClass().getResource("/test.ar"); FileTree files = compressFileOperations.arTree(resource); assertThat(files.getFiles()).anyMatch(file -> file.getPath().endsWith("src/test.txt")); }