Package: HttpResponse

HttpResponse

nameinstructionbranchcomplexitylinemethod
HttpResponse(String, int)
M: 9 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
HttpResponse(String, int, Map)
M: 12 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%
getData()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getHeaders()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getResponseCode()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getResponseMessage()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
setData(String)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setHeaders(Map)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setResponseCode(int)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setResponseMessage(String)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * Copyright (c) 2019, WSO2 Inc. (http://wso2.com) All Rights Reserved.
3: *
4: * Licensed under the Apache License, Version 2.0 (the "License");
5: * you may not use this file except in compliance with the License.
6: * You may obtain a copy of the License at
7: *
8: * http://www.apache.org/licenses/LICENSE-2.0
9: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.wso2.am.integration.test;
18:
19: import java.util.Map;
20:
21: public class HttpResponse {
22: private String data;
23: private int responseCode;
24: private String responseMessage;
25: private Map<String, String> headers;
26:
27: public HttpResponse(String data, int responseCode) {
28: this.data = data;
29: this.responseCode = responseCode;
30: }
31:
32: public HttpResponse(String data, int responseCode, Map<String, String> headers) {
33: this.data = data;
34: this.responseCode = responseCode;
35: this.headers = headers;
36: }
37:
38: public String getData() {
39: return this.data;
40: }
41:
42: public void setData(String data) {
43: this.data = data;
44: }
45:
46: public int getResponseCode() {
47: return this.responseCode;
48: }
49:
50: public void setResponseCode(int responseCode) {
51: this.responseCode = responseCode;
52: }
53:
54: public void setHeaders(Map<String, String> headers) {
55: this.headers = headers;
56: }
57:
58: public Map<String, String> getHeaders() {
59: return this.headers;
60: }
61:
62: public String getResponseMessage() {
63: return this.responseMessage;
64: }
65:
66: public void setResponseMessage(String responseMessage) {
67: this.responseMessage = responseMessage;
68: }
69: }