public class MockRequestFactory extends Object implements RequestFactory<Request<?,?>>
Constructor and Description |
---|
MockRequestFactory() |
Modifier and Type | Method and Description |
---|---|
void |
addRequest(String url,
Request<?,?> request) |
Request<?,?> |
createRequest(Request.MethodType methodType,
String url)
Creates a request of given
Request.MethodType to given url |
boolean |
supportsHeader()
Indicates whether the requests can support headers
|
public Request<?,?> createRequest(Request.MethodType methodType, String url)
RequestFactory
Request.MethodType
to given urlcreateRequest
in interface RequestFactory<Request<?,?>>
methodType
- The HTTP method typeurl
- The url to requestpublic boolean supportsHeader()
RequestFactory
supportsHeader
in interface RequestFactory<Request<?,?>>
Request.setHeader(String, String)
,
Request.addHeader(String, String)
Copyright © 2015 Atlassian. All rights reserved.