use of com.google.api.server.spi.testing.ArrayEndpoint in project endpoints-java by cloudendpoints.
the class EndpointsMethodHandlerTest method fail_findService.
@Test
public void fail_findService() throws Exception {
EndpointMethod method = systemService.resolveService("TestEndpoint", "simple");
ApiMethodConfig methodConfig = new ApiMethodConfig(method, typeLoader, apiConfig.getApiClassConfig());
systemService = SystemService.builder().withDefaults(classLoader).addService(ArrayEndpoint.class, new ArrayEndpoint()).build();
TestMethodHandler handler = new TestMethodHandler(ServletInitializationParameters.builder().build(), method, apiConfig, methodConfig, systemService, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, RESOURCE);
handler.getRestHandler().handle(context);
}
Aggregations