mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
FIX: introduced TransactionalTestCase, so that changes to DB are not persisted (#1298)
* FIX: introduced TransactionalTestCase, so that changes to DB are not persisted * removed license header
This commit is contained in:
committed by
Rob Bygrave
parent
9e2ddc9f8c
commit
11e180aa3f
@@ -1,8 +1,9 @@
|
||||
package org.tests.refresh;
|
||||
|
||||
import io.ebean.BaseTestCase;
|
||||
import io.ebean.Ebean;
|
||||
import io.ebean.SqlRow;
|
||||
import io.ebean.TransactionalTestCase;
|
||||
|
||||
import org.tests.model.basic.Contact;
|
||||
import org.tests.model.basic.Customer;
|
||||
import org.tests.model.basic.ResetBasicData;
|
||||
@@ -12,12 +13,11 @@ import java.util.List;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class TestRefreshWithMany extends BaseTestCase {
|
||||
public class TestRefreshWithMany extends TransactionalTestCase {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
|
||||
ResetBasicData.reset();
|
||||
|
||||
Customer customer = ResetBasicData.createCustomer("refresher", "22 refresh set", "23 fresh", 9);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user