APISonar


io.lettuce.core.cluster.api.sync.RedisClusterCommands.time

> io > lettuce > core > cluster > api > sync > RedisClusterCommands > time
io APIs lettuce APIs core APIs cluster APIs api APIs sync APIs RedisClusterCommands APIs time APIs

Example 1
@Mock RedisClusterCommands<byte[], byte[]> clusterConnection2Mock;

	public void timeShouldBeExecutedOnSingleNode() {

		when(clusterConnection2Mock.time()).thenReturn(Arrays.asList("1449655759".getBytes(), "92217".getBytes()));

		connection.time(CLUSTER_NODE_2);

		verify(clusterConnection2Mock, times(1)).time();
		verifyZeroInteractions(clusterConnection1Mock, clusterConnection3Mock);
	}