use of org.apache.servicecomb.foundation.vertx.http.AbstractHttpServletRequest in project incubator-servicecomb-java-chassis by apache.
the class TestRestProducerInvocation method invokeNormal.
@Test
public void invokeNormal() {
restProducerInvocation = new MockUp<RestProducerInvocation>() {
@Mock
void findRestOperation() {
restProducerInvocation.restOperationMeta = restOperationMeta;
}
@Mock
void scheduleInvocation() {
scheduleInvocation = true;
}
}.getMockInstance();
requestEx = new AbstractHttpServletRequest() {
};
restProducerInvocation.invoke(transport, requestEx, responseEx, httpServerFilters);
Assert.assertTrue(scheduleInvocation);
Assert.assertSame(requestEx, requestEx.getAttribute(RestConst.REST_REQUEST));
}
Aggregations