geode-wan/src/test/java/org/apache/geode/internal/cache/wan/WANTestBase.java
public static Integer createCacheServer() {
    CacheServer server1 = cache.addCacheServer();
    assertNotNull(server1);
    server1.setPort(0);
    try {
      server1.start();
    } catch (IOException e) {
      org.apache.geode.test.dunit.Assert.fail("Failed to start the Server", e);
    }
    assertTrue(server1.isRunning());

    return new Integer(server1.getPort());
  }
/**
   * Method that creates a bridge server
   *
   * @return Integer Port on which the server is started.
   */
Method that creates a bridge server
@return Integer Port on which the server is started.
Method that creates a bridge server @return Integer Port on which the server is started .
public static Integer createCacheServer() {
    CacheServer server1 = cache.addCacheServer();
    assertNotNull(server1);
    server1.setPort(0);
    try {
      server1.start();
    } catch (IOException e) {
      org.apache.geode.test.dunit.Assert.fail("Failed to start the Server", e);
    }
    assertTrue(server1.isRunning());
    return new Integer(server1.getPort());
  }
public static Integer createCacheServer ( ) { CacheServer server1 = cache . addCacheServer ( ) ; assertNotNull ( server1 ) ; server1 . setPort ( 0 ) ; try { server1 . start ( ) ; } catch ( IOException e ) { org . apache . geode . test . dunit . Assert . fail ( "Failed to start the Server" , e ) ; } assertTrue ( server1 . isRunning ( ) ) ; return new Integer ( server1 . getPort ( ) ) ; }
Method that creates a bridge server
 @return Integer Port on which the server is started.
Method that creates a bridge server @return Integer Port on which the server is started .