Coverage Report - org.webslinger.commons.vfs.tests.Tester
 
Classes in this File Line Coverage Branch Coverage Complexity
Tester
86%
6/7
N/A
0
 
 1  
 package org.webslinger.commons.vfs.tests;
 2  
 
 3  
 import java.io.IOException;
 4  
 
 5  
 import org.apache.commons.vfs.FileObject;
 6  
 import org.apache.commons.vfs.FileSystem;
 7  
 import org.apache.commons.vfs.FileSystemException;
 8  
 import org.apache.commons.vfs.operations.FileOperation;
 9  
 
 10  
 import org.webslinger.commons.vfs.VFSUtil;
 11  
 
 12  
 public abstract class Tester extends TestUtil {
 13  
     protected final FileObject root;
 14  
 
 15  7
     protected Tester(FileObject root) {
 16  7
         this.root = root;
 17  7
     }
 18  
 
 19  
     protected static <O extends FileOperation> O getOperation(FileSystem fs, String path, Class<O> operationClass) throws FileSystemException {
 20  104
         return VFSUtil.getOperation(fs, path, operationClass);
 21  
     }
 22  
 
 23  
     protected static <O extends FileOperation> O getOperation(FileObject file, Class<O> operationClass) throws FileSystemException {
 24  0
         return VFSUtil.getOperation(file, operationClass);
 25  
     }
 26  
 
 27  
     protected static void tree(FileObject file) throws IOException {
 28  8
         VFSUtil.tree(file, System.err);
 29  8
     }
 30  
 }