From c8ef33b3b4607f82599b7a7c06a555f0b9339da4 Mon Sep 17 00:00:00 2001 From: Jan Martiska Date: Mon, 21 Dec 2015 13:31:11 +0100 Subject: [PATCH] HHH-10395 ServiceBootstrappingTest assumes that show_sql != true --- .../org/hibernate/test/service/ServiceBootstrappingTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hibernate-core/src/test/java/org/hibernate/test/service/ServiceBootstrappingTest.java b/hibernate-core/src/test/java/org/hibernate/test/service/ServiceBootstrappingTest.java index bbf79db0c1..9104ef08a2 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/service/ServiceBootstrappingTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/service/ServiceBootstrappingTest.java @@ -26,6 +26,7 @@ import org.hibernate.engine.jdbc.spi.JdbcServices; import org.hibernate.testing.RequiresDialect; import org.hibernate.testing.env.ConnectionProviderBuilder; import org.hibernate.testing.junit4.BaseUnitTestCase; +import org.junit.Assume; import org.junit.Test; /** @@ -35,6 +36,10 @@ import org.junit.Test; public class ServiceBootstrappingTest extends BaseUnitTestCase { @Test public void testBasicBuild() { + // this test requires that SHOW_SQL property isn't passed from the outside (eg. via Gradle) + final String showSqlPropertyFromOutside = System.getProperty(Environment.SHOW_SQL); + Assume.assumeFalse("true".equals(showSqlPropertyFromOutside)); + final StandardServiceRegistryImpl serviceRegistry = (StandardServiceRegistryImpl) new StandardServiceRegistryBuilder() .applySettings( ConnectionProviderBuilder.getConnectionProviderProperties() ) .build();