From 60ad417e1b34a56cf486a96a86ce27a145511b7e Mon Sep 17 00:00:00 2001 From: rob bygrave Date: Fri, 21 Dec 2018 15:21:01 +1300 Subject: [PATCH] No effective change - adjust test to have at least 1 column on insert --- src/test/java/org/tests/query/cache/Acl.java | 10 ++++++++-- src/test/java/org/tests/query/cache/TestDistinct.java | 7 ++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/test/java/org/tests/query/cache/Acl.java b/src/test/java/org/tests/query/cache/Acl.java index 5919ae13a..0594164fc 100644 --- a/src/test/java/org/tests/query/cache/Acl.java +++ b/src/test/java/org/tests/query/cache/Acl.java @@ -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; } -} \ No newline at end of file +} diff --git a/src/test/java/org/tests/query/cache/TestDistinct.java b/src/test/java/org/tests/query/cache/TestDistinct.java index 0ae8dc440..e67c2d0ea 100644 --- a/src/test/java/org/tests/query/cache/TestDistinct.java +++ b/src/test/java/org/tests/query/cache/TestDistinct.java @@ -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();