@Test public void assumesDefaultPortIfNoneGiven() { factory.setEndpoint(HostAndPort.fromString("localhost")); assertThat(factory).hasDefaultRedisPort(); }
public void setEndpoint(HostAndPort endpoint) { this.endpoint = endpoint; }
JedisFactory { public void setEndpoint(HostAndPort endpoint) { this.endpoint = endpoint; } }
JedisFactory { public void setEndpoint(HostAndPort endpoint) { this.endpoint = endpoint; }  }
JedisFactory { public void setEndpoint(HostAndPort endpoint) { this.endpoint = endpoint; }  @JsonProperty void setUrl(URI uri); HostAndPort getEndpoint(); void setEndpoint(HostAndPort endpoint); String getHost(); int getPort(); String getPassword(); void setPassword(String password); int getMinIdle(); void setMinIdle(int minIdle); int getMaxIdle(); void setMaxIdle(int maxIdle); int getMaxTotal(); void setMaxTotal(int maxTotal); boolean getSsl(); void setSsl(boolean ssl); int getTimeout(); void setTimeout(int timeout); JedisPool build(Environment environment); }
JedisFactory { public void setEndpoint(HostAndPort endpoint) { this.endpoint = endpoint; }  @JsonProperty void setUrl(URI uri); HostAndPort getEndpoint(); void setEndpoint(HostAndPort endpoint); String getHost(); int getPort(); String getPassword(); void setPassword(String password); int getMinIdle(); void setMinIdle(int minIdle); int getMaxIdle(); void setMaxIdle(int maxIdle); int getMaxTotal(); void setMaxTotal(int maxTotal); boolean getSsl(); void setSsl(boolean ssl); int getTimeout(); void setTimeout(int timeout); JedisPool build(Environment environment); static final int DEFAULT_PORT; static final int DEFAULT_MAX_TOTAL; }