From c75c02e7a2dff2dedd72891a1652602ad5070e8f Mon Sep 17 00:00:00 2001 From: fyrz Date: Thu, 15 Jan 2015 21:54:21 +0100 Subject: [PATCH] [RocksJava] WriteBatchWithIndexTest fix Previous to this commit identiy checks were performed. Now tests are performed using equals - method as intended. --- java/org/rocksdb/test/WriteBatchWithIndexTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/org/rocksdb/test/WriteBatchWithIndexTest.java b/java/org/rocksdb/test/WriteBatchWithIndexTest.java index de2b637ff..dac3f1110 100644 --- a/java/org/rocksdb/test/WriteBatchWithIndexTest.java +++ b/java/org/rocksdb/test/WriteBatchWithIndexTest.java @@ -217,19 +217,19 @@ public class WriteBatchWithIndexTest { it.seek(key); assertThat(it.isValid()).isTrue(); - assertThat(it.entry()).isEqualTo(expected[testOffset]); + assertThat(it.entry().equals(expected[testOffset])).isTrue(); } //forward iterative access int i = 0; for(it.seekToFirst(); it.isValid(); it.next()) { - assertThat(it.entry()).isEqualTo(expected[i++]); + assertThat(it.entry().equals(expected[i++])).isTrue(); } //reverse iterative access i = expected.length - 1; for(it.seekToLast(); it.isValid(); it.prev()) { - assertThat(it.entry()).isEqualTo(expected[i--]); + assertThat(it.entry().equals(expected[i--])).isTrue(); } } finally {