Clover Coverage Report - Atlassian Trusted Apps(Aggregated)
Coverage timestamp: Tue Jun 9 2009 19:34:44 CDT
4   26   3   2
2   19   0.75   2
2     1.5  
1    
 
 
  CommonsHttpClientTrustedRequest       Line # 9 4 3 100% 1.0
 
  (2)
 
1    package com.atlassian.security.auth.trustedapps.request.commonshttpclient;
2   
3    import com.atlassian.security.auth.trustedapps.request.TrustedRequest;
4    import org.apache.commons.httpclient.HttpMethod;
5   
6    /**
7    * Commons Http Client implementation of {@link TrustedRequest}
8    */
 
9    public class CommonsHttpClientTrustedRequest implements TrustedRequest
10    {
11    private final HttpMethod httpMethod;
12   
 
13  3 toggle public CommonsHttpClientTrustedRequest(final HttpMethod httpMethod)
14    {
15  3 if (httpMethod == null)
16    {
17  1 throw new IllegalArgumentException("HttpMethod must not be null!");
18    }
19  2 this.httpMethod = httpMethod;
20    }
21   
 
22  1 toggle public void addRequestParameter(String name, String value)
23    {
24  1 httpMethod.addRequestHeader(name, value);
25    }
26    }