@Test public void getPort_notStarted() throws Exception { InProcessServer s = new InProcessServer(builder, Collections.<ServerStreamTracer.Factory>emptyList()); Truth.assertThat(s.getPort()).isEqualTo(-1); }
@Override public int getPort() { return -1; }
InProcessServer implements InternalServer { @Override public int getPort() { return -1; } }
InProcessServer implements InternalServer { @Override public int getPort() { return -1; } InProcessServer(
      InProcessServerBuilder builder,
      List<ServerStreamTracer.Factory> streamTracerFactories); }
InProcessServer implements InternalServer { @Override public int getPort() { return -1; } InProcessServer(
      InProcessServerBuilder builder,
      List<ServerStreamTracer.Factory> streamTracerFactories); @Override void start(ServerListener serverListener); @Override int getPort(); @Override List<InternalInstrumented<SocketStats>> getListenSockets(); @Override void shutdown(); @Override String toString(); }
InProcessServer implements InternalServer { @Override public int getPort() { return -1; } InProcessServer(
      InProcessServerBuilder builder,
      List<ServerStreamTracer.Factory> streamTracerFactories); @Override void start(ServerListener serverListener); @Override int getPort(); @Override List<InternalInstrumented<SocketStats>> getListenSockets(); @Override void shutdown(); @Override String toString();  }