Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
smatthewenglish committed May 6, 2019
1 parent fe6b502 commit 4bfb66c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@

import static org.mockito.Mockito.mock;

import com.google.common.base.Charsets;
import com.google.common.io.Resources;
import tech.pegasys.pantheon.ethereum.jsonrpc.BlockchainImporter;
import tech.pegasys.pantheon.ethereum.jsonrpc.JsonRpcConfiguration;
import tech.pegasys.pantheon.ethereum.jsonrpc.JsonRpcHttpService;
import tech.pegasys.pantheon.ethereum.jsonrpc.JsonRpcResponseUtils;
import tech.pegasys.pantheon.ethereum.jsonrpc.JsonRpcTestMethodsFactory;
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.methods.JsonRpcMethod;
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.methods.NetServices;
import tech.pegasys.pantheon.ethereum.jsonrpc.websocket.WebSocketConfiguration;
Expand All @@ -24,6 +29,7 @@
import tech.pegasys.pantheon.metrics.noop.NoOpMetricsSystem;
import tech.pegasys.pantheon.metrics.prometheus.MetricsConfiguration;

import java.net.URL;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.Map;
Expand All @@ -35,6 +41,8 @@

public class NetServicesIntegrationTest {



private JsonRpcHttpService jsonRpcHttpService;

@Before
Expand All @@ -60,10 +68,16 @@ public void setUp() {
/* * */
jsonRpcMethod.put("net_services", netServices);

jsonRpcHttpService =
new JsonRpcHttpService(vertx, dataDir, jsonRpcConfiguration, metricsSystem, jsonRpcMethod);
jsonRpcHttpService = new JsonRpcHttpService(vertx, dataDir, jsonRpcConfiguration, metricsSystem, jsonRpcMethod);
}

@Test
public void returnSuccessResponse() {}
public void test() {

jsonRpcHttpService.start();



}

}
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,7 @@ private void handleEmptyRequest(final RoutingContext routingContext) {
routingContext.response().setStatusCode(201).end();
}

private void handleJsonSingleRequest(
final RoutingContext routingContext, final JsonObject request, final Optional<User> user) {
private void handleJsonSingleRequest(final RoutingContext routingContext, final JsonObject request, final Optional<User> user) {
final HttpServerResponse response = routingContext.response();
vertx.executeBlocking(
future -> {
Expand Down

0 comments on commit 4bfb66c

Please sign in to comment.