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
@@ -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);