Clover Coverage Report - Impex Parent 1.0.21-SNAPSHOT (Aggregated)
Coverage timestamp: Tue Feb 8 2011 11:33:53 EST
../../../../../img/srcFileCovDistChart0.png 0% of files have more coverage
14   58   10   1.75
0   47   0.71   8
8     1.25  
1    
 
  FileMorphRequest       Line # 10 14 0% 10 22 0% 0.0
 
No Tests
 
1    package org.apache.torque.mojo.morph;
2   
3    import java.io.File;
4    import java.io.FileInputStream;
5    import java.io.FileNotFoundException;
6    import java.io.FileOutputStream;
7    import java.io.InputStream;
8    import java.io.OutputStream;
9   
 
10    public class FileMorphRequest extends MorphRequest {
11    File oldFile;
12    File newFile;
13   
 
14  0 toggle public FileMorphRequest(File oldFile, File newFile) {
15  0 super();
16  0 this.oldFile = oldFile;
17  0 this.newFile = newFile;
18    }
19   
 
20  0 toggle public FileMorphRequest() {
21  0 this(null, null);
22    }
23   
 
24  0 toggle public File getOldFile() {
25  0 return oldFile;
26    }
27   
 
28  0 toggle public void setOldFile(File oldFile) {
29  0 this.oldFile = oldFile;
30    }
31   
 
32  0 toggle public File getNewFile() {
33  0 return newFile;
34    }
35   
 
36  0 toggle public void setNewFile(File newFile) {
37  0 this.newFile = newFile;
38    }
39   
 
40  0 toggle @Override
41    public InputStream getInputStream() {
42  0 try {
43  0 return new FileInputStream(oldFile);
44    } catch (FileNotFoundException e) {
45  0 throw new RuntimeException(e);
46    }
47    }
48   
 
49  0 toggle @Override
50    public OutputStream getOutputStream() {
51  0 try {
52  0 return new FileOutputStream(newFile);
53    } catch (FileNotFoundException e) {
54  0 throw new RuntimeException(e);
55    }
56    }
57   
58    }