use of org.wso2.transport.http.netty.message.HttpCarbonMessage in project carbon-apimgt by wso2.
the class TestUtil method getRequest.
// Sample request to be used by tests
protected static Request getRequest() throws APIMgtSecurityException {
HTTPCarbonMessage carbonMessage = Mockito.mock(HTTPCarbonMessage.class);
Mockito.when(carbonMessage.getProperty("LOGGED_IN_USER")).thenReturn(USER);
Request request = new Request(carbonMessage);
return request;
}
use of org.wso2.transport.http.netty.message.HttpCarbonMessage in project carbon-apimgt by wso2.
the class ExportApiServiceImplTestCase method getRequest.
// Sample request to be used by tests
private Request getRequest() throws Exception {
HTTPCarbonMessage carbonMessage = Mockito.mock(HTTPCarbonMessage.class);
Mockito.when(carbonMessage.getProperty("LOGGED_IN_USER")).thenReturn(USER);
Request request = new Request(carbonMessage);
return request;
}
use of org.wso2.transport.http.netty.message.HttpCarbonMessage in project carbon-apimgt by wso2.
the class ImportApiServiceImplTestCase method getRequest.
// Sample request to be used by tests
private Request getRequest() throws Exception {
HTTPCarbonMessage carbonMessage = Mockito.mock(HTTPCarbonMessage.class);
Mockito.when(carbonMessage.getProperty("LOGGED_IN_USER")).thenReturn(USER);
Request request = new Request(carbonMessage);
return request;
}
use of org.wso2.transport.http.netty.message.HttpCarbonMessage in project carbon-apimgt by wso2.
the class ThreatProtectionApiServiceImplTestCase method getRequest.
private Request getRequest() throws Exception {
HTTPCarbonMessage carbonMessage = Mockito.mock(HTTPCarbonMessage.class);
Mockito.when(carbonMessage.getProperty("LOGGED_IN_USER")).thenReturn(USER);
Request request = new Request(carbonMessage);
return request;
}
Aggregations