From 2cc5c643988180c57cd32295b5563087509fc5c9 Mon Sep 17 00:00:00 2001 From: Noemi Praml Date: Tue, 5 Nov 2024 14:02:43 +0100 Subject: [PATCH] fix delete contacts --- .../java/org/tests/batchinsert/TestBatchInsertFlush.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ebean-test/src/test/java/org/tests/batchinsert/TestBatchInsertFlush.java b/ebean-test/src/test/java/org/tests/batchinsert/TestBatchInsertFlush.java index efe5a52db7..174b01767d 100644 --- a/ebean-test/src/test/java/org/tests/batchinsert/TestBatchInsertFlush.java +++ b/ebean-test/src/test/java/org/tests/batchinsert/TestBatchInsertFlush.java @@ -42,13 +42,13 @@ public void batchFlush() { for (int i = 0; i < 3; i++) { Customer customer = ResetBasicData.createCustomer("BatchFlushPreInsert " + i, null, null, 3); - customer.addContact(new Contact("Fred" + i, "Blue")); + customer.addContact(new Contact("BatchFlush" + i, "Blue")); customers.add(customer); } for (int i = 3; i < 6; i++) { Customer customer = ResetBasicData.createCustomer("BatchFlushPostInsert " + i, null, null, 3); - customer.addContact(new Contact("Fred" + i, "Blue")); + customer.addContact(new Contact("BatchFlush" + i, "Blue")); customers.add(customer); } @@ -57,7 +57,7 @@ public void batchFlush() { txn.commit(); } finally { DB.find(Customer.class).where().startsWith("name", "BatchFlush").delete(); - DB.find(Contact.class).where().startsWith("firstName", "Fred").startsWith("lastName", "Blue").delete(); + DB.find(Contact.class).where().startsWith("firstName", "BatchFlush").startsWith("lastName", "Blue").delete(); } }