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:
Roland Praml
2017-08-30 17:44:30 +12:00
committed by Rob Bygrave
parent ff496ad2d3
commit a5bcd49ecb
6 changed files with 34 additions and 1 deletions
@@ -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 {