Clover Coverage Report - AWS S3 Wagon 1.0.33-SNAPSHOT
Coverage timestamp: Wed Dec 31 1969 19:00:00 EST
../../../../img/srcFileCovDistChart0.png 0% of files have more coverage
13   67   12   1.08
0   48   0.92   12
12     1  
1    
 
  PutFileContext       Line # 11 13 0% 12 25 0% 0.0
 
No Tests
 
1    package org.kuali.maven.wagon;
2   
3    import java.io.File;
4   
5    import org.apache.maven.wagon.events.TransferEvent;
6    import org.apache.maven.wagon.resource.Resource;
7   
8    /**
9    * This is the context needed by the Wagon for uploading a file and tracking its progress as it goes
10    */
 
11    public class PutFileContext {
12    File source;
13    String destination;
14    Resource resource;
15    TransferProgress progress;
16    TransferListenerSupport listeners;
17   
 
18  0 toggle public void fireStart() {
19  0 listeners.fireTransferInitiated(getResource(), TransferEvent.REQUEST_PUT);
20  0 listeners.fireTransferStarted(getResource(), TransferEvent.REQUEST_PUT);
21    }
22   
 
23  0 toggle public void fireComplete() {
24  0 listeners.fireTransferCompleted(getResource(), TransferEvent.REQUEST_PUT);
25    }
26   
 
27  0 toggle public Resource getResource() {
28  0 return resource;
29    }
30   
 
31  0 toggle public void setResource(Resource resource) {
32  0 this.resource = resource;
33    }
34   
 
35  0 toggle public TransferProgress getProgress() {
36  0 return progress;
37    }
38   
 
39  0 toggle public void setProgress(TransferProgress progress) {
40  0 this.progress = progress;
41    }
42   
 
43  0 toggle public TransferListenerSupport getListeners() {
44  0 return listeners;
45    }
46   
 
47  0 toggle public void setListeners(TransferListenerSupport listeners) {
48  0 this.listeners = listeners;
49    }
50   
 
51  0 toggle public String getDestination() {
52  0 return destination;
53    }
54   
 
55  0 toggle public void setDestination(String destination) {
56  0 this.destination = destination;
57    }
58   
 
59  0 toggle public File getSource() {
60  0 return source;
61    }
62   
 
63  0 toggle public void setSource(File source) {
64  0 this.source = source;
65    }
66   
67    }