Clover Coverage Report - KS Contract Documentation Generator 0.0.1-SNAPSHOT
Coverage timestamp: Wed Dec 31 1969 19:00:00 EST
../../../../../../img/srcFileCovDistChart0.png 0% of files have more coverage
31   62   4   7.75
0   46   0.13   4
4     1  
1    
 
  ServiceDumper       Line # 15 31 0% 4 35 0% 0.0
 
No Tests
 
1    /*
2    * To change this template, choose Tools | Templates
3    * and open the template in the editor.
4    */
5    package org.kuali.student.contract.model.util;
6   
7    import java.io.PrintStream;
8   
9    import org.kuali.student.contract.model.Service;
10   
11    /**
12    *
13    * @author nwright
14    */
 
15    public class ServiceDumper {
16   
17    private Service service;
18    private PrintStream out;
19   
 
20  0 toggle public ServiceDumper(Service service, PrintStream out) {
21  0 this.service = service;
22  0 this.out = out;
23    }
24   
 
25  0 toggle public void dump() {
26  0 out.println(service.getKey() + "." + service.getName() + "(" + service.getVersion() + ")");
27    }
28   
 
29  0 toggle public void writeTabbedHeader() {
30  0 out.print("Key");
31  0 out.print("\t");
32  0 out.print("Name");
33  0 out.print("\t");
34  0 out.print("Version");
35  0 out.print("\t");
36  0 out.print("url");
37  0 out.print("\t");
38  0 out.print("ImplProject");
39  0 out.print("\t");
40  0 out.print("status");
41  0 out.print("\t");
42  0 out.print("comments");
43  0 out.println("");
44    }
45   
 
46  0 toggle public void writeTabbedData() {
47  0 out.print(service.getKey());
48  0 out.print("\t");
49  0 out.print(service.getName());
50  0 out.print("\t");
51  0 out.print(service.getVersion());
52  0 out.print("\t");
53  0 out.print(service.getUrl());
54  0 out.print("\t");
55  0 out.print(service.getImplProject());
56  0 out.print("\t");
57  0 out.print(service.getStatus());
58  0 out.print("\t");
59  0 out.print(service.getComments());
60  0 out.println("");
61    }
62    }