DATAES-363 - Polishing.

Original pull request: #183.
This commit is contained in:
Oliver Gierke 2018-04-18 12:36:27 +02:00
parent 512e9eacad
commit 92c3bbebed
2 changed files with 4 additions and 2 deletions

View File

@ -277,6 +277,7 @@ public class SimpleElasticsearchRepositoryTests {
@Test // DATAES-363 @Test // DATAES-363
public void shouldReturnFalseGivenDocumentWithIdDoesNotExist() { public void shouldReturnFalseGivenDocumentWithIdDoesNotExist() {
// given // given
String documentId = randomNumeric(5); String documentId = randomNumeric(5);
@ -284,7 +285,7 @@ public class SimpleElasticsearchRepositoryTests {
boolean exist = repository.existsById(documentId); boolean exist = repository.existsById(documentId);
// then // then
assertEquals(exist, false); assertThat(exist, is(false));
} }
@Test @Test

View File

@ -265,6 +265,7 @@ public class UUIDElasticsearchRepositoryTests {
@Test // DATAES-363 @Test // DATAES-363
public void shouldReturnFalseGivenDocumentWithIdDoesNotExist() { public void shouldReturnFalseGivenDocumentWithIdDoesNotExist() {
// given // given
UUID documentId = UUID.randomUUID(); UUID documentId = UUID.randomUUID();
@ -272,7 +273,7 @@ public class UUIDElasticsearchRepositoryTests {
boolean exist = repository.existsById(documentId); boolean exist = repository.existsById(documentId);
// then // then
assertEquals(exist, false); assertThat(exist, is(false));
} }
@Test @Test