Skip to content

Commit 49fcc66

Browse files
committed
Add more assertions
1 parent 416f1da commit 49fcc66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/test/java/org/elasticsearch/index/codec/bloomfilter/ES93BloomFilterStoredFieldsFormatTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import java.util.ArrayList;
4141
import java.util.List;
4242

43+
import static org.hamcrest.Matchers.equalTo;
4344
import static org.hamcrest.Matchers.instanceOf;
4445
import static org.hamcrest.Matchers.is;
4546
import static org.hamcrest.Matchers.not;
@@ -130,7 +131,9 @@ public void testBloomFilterFieldIsNotStoredAndBloomFilterCanBeChecked() throws I
130131
// The _id field is not actually stored, just used to build the bloom filter
131132
assertThat(document.get(IdFieldMapper.NAME), nullValue());
132133
assertThat(document.get("host"), not(nullValue()));
134+
assertThat(document.get("host"), is(equalTo("host-" + docId)));
133135
assertThat(document.get("counter"), not(nullValue()));
136+
assertThat(document.getField("counter").storedValue().getLongValue(), is(equalTo((long) docId)));
134137
}
135138
}
136139
}

0 commit comments

Comments
 (0)