From 32dcbc67032fb6ba55dc1b199ea25483860a0b45 Mon Sep 17 00:00:00 2001 From: Robin Bygrave Date: Fri, 18 Sep 2015 21:13:19 +1200 Subject: [PATCH] Change test to only run with H2 (but it would also run with db's that use history table views/triggers but not with oracle total recall) --- .../java/com/avaje/tests/history/TestHistoryInsert.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/java/com/avaje/tests/history/TestHistoryInsert.java b/src/test/java/com/avaje/tests/history/TestHistoryInsert.java index 9fda60e7b..40b74335c 100644 --- a/src/test/java/com/avaje/tests/history/TestHistoryInsert.java +++ b/src/test/java/com/avaje/tests/history/TestHistoryInsert.java @@ -5,6 +5,7 @@ import com.avaje.ebean.Ebean; import com.avaje.ebean.SqlQuery; import com.avaje.ebean.SqlRow; import com.avaje.ebean.Version; +import com.avaje.ebeaninternal.api.SpiEbeanServer; import com.avaje.tests.model.converstation.User; import org.junit.Test; @@ -18,6 +19,13 @@ public class TestHistoryInsert extends BaseTestCase { @Test public void test() { + SpiEbeanServer defaultServer = (SpiEbeanServer)Ebean.getDefaultServer(); + if (!"h2".equals(defaultServer.getDatabasePlatform().getName())) { + // Oracle for example uses total recall so we can select the explicit + // history tables as we do in this test + return; + } + User user = new User(); user.setName("Jim"); user.setEmail("one@email.com");