mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-26 23:22:57 +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:
1 parent
9e2ddc9f8c
commit
11e180aa3f
22 files changed
+142
-89
No files matched your search
@@ -1,8 +1,8 @@
|
||||
package org.tests.text.json;
|
||||
|
||||
import io.ebean.BaseTestCase;
|
||||
import io.ebean.Ebean;
|
||||
import io.ebean.EbeanServer;
|
||||
import io.ebean.TransactionalTestCase;
|
||||
import io.ebean.text.json.JsonContext;
|
||||
import org.tests.model.basic.Customer;
|
||||
import org.tests.model.basic.MRole;
|
||||
@@ -18,13 +18,11 @@ import org.junit.Test;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
public class TestTextJsonUpdateCascade extends BaseTestCase {
|
||||
public class TestTextJsonUpdateCascade extends TransactionalTestCase {
|
||||
|
||||
@Test
|
||||
public void test() throws IOException {
|
||||
|
||||
ResetBasicData.reset();
|
||||
|
||||
Customer c0 = ResetBasicData.createCustAndOrder("Test Json");
|
||||
|
||||
Customer c2 = Ebean.getReference(Customer.class, c0.getId());
|
||||
|
||||
Reference in new issue
Block a user