No effective change - adjust test to have at least 1 column on insert

This commit is contained in:
rob bygrave
2018-12-21 15:21:01 +13:00
parent 3af1b574fd
commit 60ad417e1b
2 changed files with 10 additions and 7 deletions
+8 -2
View File
@@ -10,11 +10,17 @@ public class Acl {
@GeneratedValue
protected Long id;
public Long getId() {
String name;
public Acl(String name) {
this.name = name;
}
public Long getId() {
return id;
}
public void setId(final Long id) {
this.id = id;
}
}
}
+2 -5
View File
@@ -3,8 +3,6 @@ package org.tests.query.cache;
import io.ebean.BaseTestCase;
import io.ebean.Ebean;
import io.ebean.ExpressionList;
import io.ebean.annotation.ForPlatform;
import io.ebean.annotation.Platform;
import org.junit.Test;
import java.util.List;
@@ -17,12 +15,11 @@ public class TestDistinct extends BaseTestCase {
* The call of {@link #positionsQuery} {@link ExpressionList#findList()} causes the following use of {@link #costsQuery(UUID...)} to not
* use distinct and return the wrong number of results.
*/
@ForPlatform(Platform.H2)
@Test
public void testMissingUnique() {
Acl acl = new Acl();
Acl acl = new Acl("1");
Ebean.save(acl);
Acl acl2 = new Acl();
Acl acl2 = new Acl("2");
Ebean.save(acl2);
Contract contract = new Contract();
AclContainerRelation rel1 = new AclContainerRelation();