mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
Modify test TestUpdate to ensure basic test data is loaded first
This commit is contained in:
1 parent
8440a13b0f
commit
0273e1c2c8
1 file changed
+2
@@ -7,6 +7,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.tests.model.basic.Customer;
|
||||
import org.tests.model.basic.ResetBasicData;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -21,6 +22,7 @@ public class TestUpdate extends BaseTestCase {
|
||||
|
||||
@BeforeEach
|
||||
public void createCustomers() {
|
||||
ResetBasicData.reset();
|
||||
for (int i = 1; i <= 3; i++) {
|
||||
Customer cust = new Customer();
|
||||
cust.setName("testUpdate" + i);
|
||||
|
||||
Reference in new issue
Block a user