Ejemplo n.º 1
0
  @Test
  @Ignore // ignored to not run this automatically.
  // Run this for manual testing in its own JUnit process (right-click in IDE),
  // and simultaneously run testStartClientAndSubmitExecutionRequest in a separate JUnit process...
  public void testStartListener() {
    final MobilityController mobilityController = MobilityRPC.newController();
    final ConnectionManager connectionManager = mobilityController.getConnectionManager();

    final ConnectionId localEndpointIdentifier = new ConnectionId("127.0.0.1", 5739);

    connectionManager.bindConnectionListener(localEndpointIdentifier);
    sleep(10);
    connectionManager.unbindConnectionListener(localEndpointIdentifier);
  }