#1340 - Split SQL Server Platform into SqlServer16 and SqlServer17 (where 2017 which uses UTF8 types nvarchar etc and prefers Sequences).

test changes
This commit is contained in:
Rob Bygrave
2018-03-08 17:40:11 +13:00
parent 8e0d2f8749
commit f840cfc2ae
17 changed files with 260 additions and 38 deletions
@@ -5,6 +5,8 @@ import io.ebean.EbeanServer;
import io.ebean.EbeanServerFactory;
import io.ebean.Query;
import io.ebean.Transaction;
import io.ebean.annotation.ForPlatform;
import io.ebean.annotation.Platform;
import io.ebean.config.ServerConfig;
import io.ebean.config.properties.PropertiesLoader;
import org.avaje.datasource.DataSourceConfig;
@@ -24,6 +26,7 @@ import static org.junit.Assert.assertTrue;
public class TestExplicitTransactionMode extends BaseTestCase {
@ForPlatform(Platform.H2)
@Test
public void test() throws SQLException {
@@ -56,6 +59,8 @@ public class TestExplicitTransactionMode extends BaseTestCase {
EbeanServer ebeanServer = EbeanServerFactory.create(config);
System.clearProperty("ebean.ignoreExtraDdl");
Query<UTMaster> query = ebeanServer.find(UTMaster.class);
List<UTMaster> details = ebeanServer.findList(query, null);
assertEquals(0, details.size());