Clover coverage report - Diasparsoft Toolkit - 0.22
Coverage timestamp: Tue Jun 8 2004 12:41:26 EDT
file stats: LOC: 77   Methods: 14
NCLOC: 56   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
TestableWebResponse.java - 100% 100% 100%
coverage
 1   
 package com.diasparsoftware.htmlunitx;
 2   
 
 3   
 import java.net.URL;
 4   
 import java.util.Properties;
 5   
 
 6   
 import com.diasparsoftware.gsbase.*;
 7   
 import com.gargoylesoftware.htmlunit.WebResponse;
 8   
 
 9   
 
 10   
 public abstract class TestableWebResponse implements WebResponse {
 11   
     private int statusCode = 200;
 12   
     private String statusMessage = "";
 13   
     private String contentType = "application/octet-stream";
 14   
     private String contentCharSet = "ISO-8859-1";
 15   
     private Properties responseHeaderValues = new Properties();
 16   
     private Stopwatch stopwatch = new SystemClockStopwatch();
 17   
 
 18   
     private URL url;
 19   
     
 20  396
     public TestableWebResponse(URL url) {
 21  396
         this.url = url;
 22   
     }
 23   
 
 24  396
     public URL getUrl() {
 25  396
         return url;
 26   
     }
 27   
 
 28  88
     public int getStatusCode() {
 29  88
         return statusCode;
 30   
     }
 31   
     
 32  22
     public void setStatusCode(int statusCode) {
 33  22
         this.statusCode = statusCode;
 34   
     }
 35   
 
 36  44
     public String getStatusMessage() {
 37  44
         return statusMessage;
 38   
     }
 39   
 
 40  22
     public void setStatusMessage(String statusMessage) {
 41  22
         this.statusMessage = statusMessage;
 42   
     }
 43   
 
 44  44
     public String getResponseHeaderValue(String headerName) {
 45  44
         return responseHeaderValues.getProperty(headerName);
 46   
     }
 47   
 
 48  22
     public void addResponseHeaderValue(String name, String value) {
 49  22
         responseHeaderValues.put(name, value);
 50   
     }
 51   
 
 52  187
     public String getContentCharSet() {
 53  187
         return contentCharSet;
 54   
     }
 55   
 
 56  22
     public void setContentCharSet(String contentCharSet) {
 57  22
         this.contentCharSet = contentCharSet;
 58   
     }
 59   
 
 60  88
     public String getContentType() {
 61  88
         return contentType;
 62   
     }
 63   
 
 64  66
     public void setContentType(String contentType) {
 65  66
         this.contentType = contentType;
 66   
     }
 67   
     
 68  792
     public Stopwatch getStopwatch() {
 69  792
         return stopwatch;
 70   
     }
 71   
 
 72  22
     public void setStopwatch(Stopwatch stopwatch) {
 73  22
         this.stopwatch = stopwatch;
 74   
     }
 75   
 
 76   
 }
 77