mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-25 05:22:10 +00:00
parent
512e9eacad
commit
92c3bbebed
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user