mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
FIX: Clean up before running tests - otherwise tests will fail if a previous test did not clean up well. (This fixes test failures in Eclipse where tests are executed in different order than in maven) (#1089)
This commit is contained in:
committed by
Rob Bygrave
parent
ff496ad2d3
commit
a5bcd49ecb
@@ -6,6 +6,7 @@ import io.ebean.text.json.JsonContext;
|
||||
import io.ebean.text.json.JsonWriteOptions;
|
||||
import org.tests.model.basic.Customer;
|
||||
import org.tests.model.basic.ResetBasicData;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -13,6 +14,11 @@ import java.util.List;
|
||||
|
||||
public class TestTextJsonInvokeLazy extends BaseTestCase {
|
||||
|
||||
@Before
|
||||
public void clearBeanCache() {
|
||||
server().getPluginApi().getBeanType(Customer.class).clearBeanCache();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test() throws IOException {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user