Skip to content

Commit 92c3bbe

Browse files
committed
DATAES-363 - Polishing.
Original pull request: spring-projects#183.
1 parent 512e9ea commit 92c3bbe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleElasticsearchRepositoryTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,14 +277,15 @@ public void shouldReturnTrueGivenDocumentWithIdExists() {
277277

278278
@Test // DATAES-363
279279
public void shouldReturnFalseGivenDocumentWithIdDoesNotExist() {
280+
280281
// given
281282
String documentId = randomNumeric(5);
282283

283284
// when
284285
boolean exist = repository.existsById(documentId);
285286

286287
// then
287-
assertEquals(exist, false);
288+
assertThat(exist, is(false));
288289
}
289290

290291
@Test

src/test/java/org/springframework/data/elasticsearch/repository/support/UUIDElasticsearchRepositoryTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,15 @@ public void shouldReturnTrueGivenDocumentWithIdExists() {
265265

266266
@Test // DATAES-363
267267
public void shouldReturnFalseGivenDocumentWithIdDoesNotExist() {
268+
268269
// given
269270
UUID documentId = UUID.randomUUID();
270271

271272
// when
272273
boolean exist = repository.existsById(documentId);
273274

274275
// then
275-
assertEquals(exist, false);
276+
assertThat(exist, is(false));
276277
}
277278

278279
@Test

0 commit comments

Comments
 (0)