use of org.apache.servicecomb.common.rest.locator.TestPathSchema in project java-chassis by ServiceComb.
the class TestRestProducerInvocation method classSetup.
@BeforeClass
public static void classSetup() {
ConfigUtil.installDynamicConfig();
scbEngine = SCBBootstrap.createSCBEngineForTest().addProducerMeta("sid1", new TestPathSchema()).run();
operationMeta = scbEngine.getProducerMicroserviceMeta().operationMetas().get("test.sid1.dynamicId");
restOperationMeta = RestMetaUtils.getRestOperationMeta(operationMeta);
microserviceMeta = operationMeta.getMicroserviceMeta();
}
use of org.apache.servicecomb.common.rest.locator.TestPathSchema in project java-chassis by ServiceComb.
the class TestAbstractRestInvocation method setup.
@Before
public void setup() {
ConfigUtil.installDynamicConfig();
scbEngine = SCBBootstrap.createSCBEngineForTest().addProducerMeta("sid1", new TestPathSchema()).run();
operationMeta = scbEngine.getProducerMicroserviceMeta().operationMetas().get("test.sid1.dynamicId");
restOperation = RestMetaUtils.getRestOperationMeta(operationMeta);
new MockUp<System>() {
@Mock
long nanoTime() {
return nanoTime;
}
};
if (responseEx == null) {
responseEx = new StandardHttpServletResponseEx(servletResponse);
}
invocation = new Invocation(endpoint, operationMeta, operationMeta.buildBaseConsumerRuntimeType(), arguments);
initRestInvocation();
List<HttpServerFilter> httpServerFilters = SPIServiceUtils.getSortedService(HttpServerFilter.class);
restInvocation.setHttpServerFilters(httpServerFilters);
}
use of org.apache.servicecomb.common.rest.locator.TestPathSchema in project java-chassis by ServiceComb.
the class TestRestEngineSchemaListener method setup.
@BeforeClass
public static void setup() {
ConfigUtil.installDynamicConfig();
scbEngine = SCBBootstrap.createSCBEngineForTest().addProducerMeta("sid1", new TestPathSchema()).run();
spm = ServicePathManager.getServicePathManager(scbEngine.getProducerMicroserviceMeta());
}
Aggregations