From 8e1110634fee1b957635eaab8dee2cba5e3bab97 Mon Sep 17 00:00:00 2001 From: adamw Date: Fri, 1 Apr 2011 22:13:31 +0200 Subject: [PATCH] HHH-6014: Making the runnable work from command line --- .../envers/test/AbstractEnversTest.java | 2 +- .../src/test/resources/hibernate.properties | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 hibernate-envers/src/test/resources/hibernate.properties diff --git a/hibernate-envers/src/test/java/org/hibernate/envers/test/AbstractEnversTest.java b/hibernate-envers/src/test/java/org/hibernate/envers/test/AbstractEnversTest.java index 798d56f909..b5d2b479a5 100644 --- a/hibernate-envers/src/test/java/org/hibernate/envers/test/AbstractEnversTest.java +++ b/hibernate-envers/src/test/java/org/hibernate/envers/test/AbstractEnversTest.java @@ -11,7 +11,7 @@ import java.util.List; * @author Adam Warski (adam at warski dot org) */ @RunWith(EnversRunner.class) -public class AbstractEnversTest { +public abstract class AbstractEnversTest { private String auditStrategy; @Parameterized.Parameters diff --git a/hibernate-envers/src/test/resources/hibernate.properties b/hibernate-envers/src/test/resources/hibernate.properties new file mode 100644 index 0000000000..d49c289a7d --- /dev/null +++ b/hibernate-envers/src/test/resources/hibernate.properties @@ -0,0 +1,27 @@ +# +# Hibernate, Relational Persistence for Idiomatic Java +# +# Copyright (c) 2010, Red Hat Inc. or third-party contributors as +# indicated by the @author tags or express copyright attribution +# statements applied by the authors. All third-party contributions are +# distributed under license by Red Hat Inc. +# +# This copyrighted material is made available to anyone wishing to use, modify, +# copy, or redistribute it subject to the terms and conditions of the GNU +# Lesser General Public License, as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License +# for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this distribution; if not, write to: +# Free Software Foundation, Inc. +# 51 Franklin Street, Fifth Floor +# Boston, MA 02110-1301 USA +# + +# The CustomTestRunner needs this to instantiate a dialect + +hibernate.dialect org.hibernate.dialect.H2Dialect \ No newline at end of file