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:
Roland Praml
2018-03-02 09:10:21 +13:00
committed by Rob Bygrave
parent 9e2ddc9f8c
commit 11e180aa3f
22 changed files with 142 additions and 89 deletions
@@ -1,8 +1,9 @@
package org.tests.basic;
import io.ebean.BaseTestCase;
import io.ebean.Ebean;
import io.ebean.Query;
import io.ebean.TransactionalTestCase;
import org.tests.model.basic.Customer;
import org.tests.model.basic.Order;
import org.tests.model.basic.ResetBasicData;
@@ -11,12 +12,11 @@ import org.junit.Test;
import java.util.List;
public class TestOrderByAnnotation extends BaseTestCase {
public class TestOrderByAnnotation extends TransactionalTestCase {
@Test
public void testOrderBy() {
ResetBasicData.reset();
Customer custTest = ResetBasicData.createCustAndOrder("testOrderByAnn");
Customer customer = Ebean.find(Customer.class, custTest.getId());