Merge pull request #6529 from dkapil/task/BAEL-13321

BAEL-13321 Fixed test-data creation logic in live test
This commit is contained in:
Loredana Crusoveanu 2019-03-14 21:38:12 +02:00 committed by GitHub
commit 33f054be45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ public class SpringDataProjectionLiveTest {
@Before
public void setup() {
if (bookRepo.findById(1L) == null) {
if (!bookRepo.findById(1L).isPresent()) {
Book book = new Book("Animal Farm");
book.setIsbn("978-1943138425");
book = bookRepo.save(book);