mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Modify test TestUpdate to ensure basic test data is loaded first
This commit is contained in:
@@ -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