diff --git a/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleElasticsearchRepositoryTests.java b/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleElasticsearchRepositoryTests.java index 9be7f9b26..4741711f5 100644 --- a/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleElasticsearchRepositoryTests.java +++ b/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleElasticsearchRepositoryTests.java @@ -277,6 +277,7 @@ public class SimpleElasticsearchRepositoryTests { @Test // DATAES-363 public void shouldReturnFalseGivenDocumentWithIdDoesNotExist() { + // given String documentId = randomNumeric(5); @@ -284,7 +285,7 @@ public class SimpleElasticsearchRepositoryTests { boolean exist = repository.existsById(documentId); // then - assertEquals(exist, false); + assertThat(exist, is(false)); } @Test diff --git a/src/test/java/org/springframework/data/elasticsearch/repository/support/UUIDElasticsearchRepositoryTests.java b/src/test/java/org/springframework/data/elasticsearch/repository/support/UUIDElasticsearchRepositoryTests.java index 8e3a3f2b1..a2c077d77 100644 --- a/src/test/java/org/springframework/data/elasticsearch/repository/support/UUIDElasticsearchRepositoryTests.java +++ b/src/test/java/org/springframework/data/elasticsearch/repository/support/UUIDElasticsearchRepositoryTests.java @@ -265,6 +265,7 @@ public class UUIDElasticsearchRepositoryTests { @Test // DATAES-363 public void shouldReturnFalseGivenDocumentWithIdDoesNotExist() { + // given UUID documentId = UUID.randomUUID(); @@ -272,7 +273,7 @@ public class UUIDElasticsearchRepositoryTests { boolean exist = repository.existsById(documentId); // then - assertEquals(exist, false); + assertThat(exist, is(false)); } @Test