From 92c3bbebedf87840f3c8328f5bcaaf31e7bf49b9 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Wed, 18 Apr 2018 12:36:27 +0200 Subject: [PATCH] DATAES-363 - Polishing. Original pull request: #183. --- .../repository/support/SimpleElasticsearchRepositoryTests.java | 3 ++- .../repository/support/UUIDElasticsearchRepositoryTests.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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