use of net.morimekta.providence.server.internal.NoLogging in project providence by morimekta.
the class ProvidenceServletTest method setUpServer.
@Before
public void setUpServer() throws Exception {
Awaitility.setDefaultPollDelay(2, TimeUnit.MILLISECONDS);
Log.setLog(new NoLogging());
impl = mock(TestService.Iface.class);
instrumentation = mock(ServiceCallInstrumentation.class);
provider = new DefaultSerializerProvider();
server = new Server(0);
ServletContextHandler handler = new ServletContextHandler();
handler.addServlet(new ServletHolder(new ProvidenceServlet(new TestService.Processor(impl), provider, instrumentation)), "/" + ENDPOINT);
server.setHandler(handler);
server.start();
port = getExposedPort(server);
}
use of net.morimekta.providence.server.internal.NoLogging in project providence by morimekta.
the class ProvidenceServlet_ThriftClientTest method setUpServer.
@BeforeClass
public static void setUpServer() throws Exception {
Awaitility.setDefaultPollDelay(2, TimeUnit.MILLISECONDS);
Log.setLog(new NoLogging());
impl = mock(TestService.Iface.class);
instrumentation = mock(ServiceCallInstrumentation.class);
provider = new DefaultSerializerProvider();
server = new Server(0);
ServletContextHandler handler = new ServletContextHandler();
handler.addServlet(new ServletHolder(new ProvidenceServlet(new TestService.Processor(impl), provider, instrumentation)), "/" + ENDPOINT);
server.setHandler(handler);
server.start();
port = getExposedPort(server);
}
Aggregations