DATAREDIS-603 - Polishing.

Fix erroneous test setup.

Original Pull Request: #275
This commit is contained in:
Christoph Strobl
2017-09-28 16:45:18 +02:00
parent 06c37880f7
commit cbd9dad96f

View File

@@ -364,7 +364,7 @@ public class JedisClusterConnectionUnitTests {
expectedException.expectMessage(exception.getMessage());
expectedException.expectCause(is(exception));
when(clusterMock.set("foo".getBytes(), "bar".getBytes())).thenThrow(exception);
doThrow(exception).when(clusterMock).set("foo".getBytes(), "bar".getBytes());
connection.set("foo".getBytes(), "bar".getBytes());
}