mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-14 06:45:21 +00:00
Refactor tests, move some unit tests to ebean-api
This commit is contained in:
1 parent
426d314e63
commit
b85bb5f459
10 files changed
+4
-8
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,6 +1,9 @@
|
|||||||
package io.ebean.xtest;
|
package io.ebean.xtest;
|
||||||
|
|
||||||
import io.ebean.*;
|
import io.ebean.CacheMode;
|
||||||
|
import io.ebean.DB;
|
||||||
|
import io.ebean.Database;
|
||||||
|
import io.ebean.Query;
|
||||||
import io.ebean.annotation.PersistBatch;
|
import io.ebean.annotation.PersistBatch;
|
||||||
import io.ebean.annotation.Platform;
|
import io.ebean.annotation.Platform;
|
||||||
import io.ebean.cache.ServerCacheStatistics;
|
import io.ebean.cache.ServerCacheStatistics;
|
||||||
@@ -10,10 +13,7 @@ import io.ebean.meta.ServerMetrics;
|
|||||||
import io.ebean.util.StringHelper;
|
import io.ebean.util.StringHelper;
|
||||||
import io.ebean.xtest.base.PlatformCondition;
|
import io.ebean.xtest.base.PlatformCondition;
|
||||||
import io.ebeaninternal.api.SpiEbeanServer;
|
import io.ebeaninternal.api.SpiEbeanServer;
|
||||||
import io.ebeaninternal.api.SpiQuery;
|
|
||||||
import io.ebeaninternal.api.SpiTransaction;
|
import io.ebeaninternal.api.SpiTransaction;
|
||||||
import io.ebeaninternal.server.core.HelpCreateQueryRequest;
|
|
||||||
import io.ebeaninternal.server.core.OrmQueryRequest;
|
|
||||||
import io.ebeaninternal.server.deploy.BeanDescriptor;
|
import io.ebeaninternal.server.deploy.BeanDescriptor;
|
||||||
import io.ebeaninternal.server.expression.platform.DbExpressionHandler;
|
import io.ebeaninternal.server.expression.platform.DbExpressionHandler;
|
||||||
import io.ebeaninternal.server.expression.platform.DbExpressionHandlerFactory;
|
import io.ebeaninternal.server.expression.platform.DbExpressionHandlerFactory;
|
||||||
@@ -325,8 +325,4 @@ public abstract class BaseTestCase {
|
|||||||
DbExpressionHandler dbExpressionHandler = DbExpressionHandlerFactory.from(spiEbeanServer().databasePlatform());
|
DbExpressionHandler dbExpressionHandler = DbExpressionHandlerFactory.from(spiEbeanServer().databasePlatform());
|
||||||
return dbExpressionHandler.concat(property0, separator, property1, suffix);
|
return dbExpressionHandler.concat(property0, separator, property1, suffix);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected <T> OrmQueryRequest<T> createQueryRequest(SpiQuery.Type type, Query<T> query, Transaction t) {
|
|
||||||
return HelpCreateQueryRequest.create(server(), type, query, t);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user