No effective change - modify tests for SqlServer

This commit is contained in:
Rob Bygrave
2018-02-09 21:10:18 +13:00
parent abcc651e7f
commit cc5f3689f3
3 changed files with 10 additions and 6 deletions
@@ -4,6 +4,8 @@ import io.ebean.BaseTestCase;
import io.ebean.CacheMode;
import io.ebean.Ebean;
import io.ebean.Pairs;
import io.ebean.annotation.IgnorePlatform;
import io.ebean.annotation.Platform;
import io.ebean.cache.ServerCache;
import io.ebean.cache.ServerCacheManager;
import io.ebean.cache.ServerCacheStatistics;
@@ -249,6 +251,7 @@ public class TestCacheViaComplexNaturalKey3 extends BaseTestCase {
assertBeanCacheHitMiss(0, 0);
}
@IgnorePlatform({Platform.MYSQL, Platform.SQLSERVER})
@Test
public void findList_inPairs_standardConcat() {
@@ -284,6 +287,7 @@ public class TestCacheViaComplexNaturalKey3 extends BaseTestCase {
}
@IgnorePlatform({Platform.MYSQL, Platform.SQLSERVER})
@Test
public void findList_inPairs_userConcat() {
@@ -10,17 +10,17 @@ import java.util.List;
@Entity
public class OtoThTop extends BaseModel {
String top;
String topp;
@OneToMany(cascade = CascadeType.ALL)
List<OtoThMany> manies;
public String getTop() {
return top;
public String getTopp() {
return topp;
}
public void setTop(String top) {
this.top = top;
public void setTopp(String topp) {
this.topp = topp;
}
public List<OtoThMany> getManies() {
@@ -9,7 +9,7 @@ public class TestOneToOneManyDelete {
public void test() {
OtoThTop top = new OtoThTop();
top.setTop("top");
top.setTopp("top");
for (int i = 0; i < 4; i++) {
OtoThMany many = new OtoThMany();