DATAREDIS-1210 - Fix loop in StreamReadOptions toString().
Original Pull Request: #557
This commit is contained in:
committed by
Christoph Strobl
parent
3022efa843
commit
9b87d3f080
@@ -25,6 +25,7 @@ import org.junit.Test;
|
||||
* Unit tests for {@link StreamReadOptions}.
|
||||
*
|
||||
* @author Mark Paluch
|
||||
* @author Kaizhou Zhang
|
||||
*/
|
||||
public class StreamReadOptionsUnitTests {
|
||||
|
||||
@@ -35,4 +36,11 @@ public class StreamReadOptionsUnitTests {
|
||||
assertThat(StreamReadOptions.empty().block(Duration.ofSeconds(1)).isBlocking()).isTrue();
|
||||
assertThat(StreamReadOptions.empty().block(Duration.ZERO).isBlocking()).isTrue();
|
||||
}
|
||||
|
||||
@Test // DATAREDIS-1210
|
||||
public void testToString() {
|
||||
|
||||
assertThat(StreamReadOptions.empty().toString())
|
||||
.isEqualTo("StreamReadOptions{block=null, count=null, noack=false, blocking=false}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user