Package org.springframework.data.redis.connection.RedisNode

Examples of org.springframework.data.redis.connection.RedisNode.RedisNodeBuilder


   * @see DATAREDIS-330
   */
  @Test
  public void failoverShouldBeSentCorrectly() {

    connection.failover(new RedisNodeBuilder().withName("mymaster").build());
    verify(jedisMock, times(1)).sentinelFailover(eq("mymaster"));
  }
View Full Code Here


  /**
   * @see DATAREDIS-330
   */
  @Test(expected = IllegalArgumentException.class)
  public void failoverShouldThrowExceptionIfMasterNodeNameIsEmpty() {
    connection.failover(new RedisNodeBuilder().build());
  }
View Full Code Here

   * @see DATAREDIS-330
   */
  @Test
  public void shouldReadSlavesCorrectlyWhenGivenNamedNode() {

    connection.slaves(new RedisNodeBuilder().withName("mymaster").build());
    verify(jedisMock, times(1)).sentinelSlaves(eq("mymaster"));
  }
View Full Code Here

  /**
   * @see DATAREDIS-330
   */
  @Test(expected = IllegalArgumentException.class)
  public void readSlavesShouldThrowExceptionWhenNodeWithoutName() {
    connection.slaves(new RedisNodeBuilder().build());
  }
View Full Code Here

   * @see DATAREDIS-330
   */
  @Test
  public void shouldRemoveMasterCorrectlyWhenGivenNamedNode() {

    connection.remove(new RedisNodeBuilder().withName("mymaster").build());
    verify(jedisMock, times(1)).sentinelRemove(eq("mymaster"));
  }
View Full Code Here

  /**
   * @see DATAREDIS-330
   */
  @Test(expected = IllegalArgumentException.class)
  public void removeShouldThrowExceptionWhenNodeWithoutName() {
    connection.remove(new RedisNodeBuilder().build());
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.redis.connection.RedisNode.RedisNodeBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.