HHH-11617 : Move helpers to hibernate-testing so tests in hibernate-entitymanager can access them

This commit is contained in:
Gail Badner 2018-04-27 16:59:00 -07:00
parent 0fbaac8480
commit d6ab67ac50
10 changed files with 15 additions and 27 deletions

View File

@ -11,7 +11,7 @@
import java.util.LinkedHashMap;
import java.util.Map;
import org.hibernate.test.util.jdbc.BasicPreparedStatementObserver;
import org.hibernate.testing.jdbc.BasicPreparedStatementObserver;
/**
* @author Gail Badner

View File

@ -24,7 +24,7 @@
import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
import org.hibernate.test.util.jdbc.PreparedStatementProxyConnectionProvider;
import org.hibernate.testing.jdbc.PreparedStatementProxyConnectionProvider;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

View File

@ -17,7 +17,7 @@
import java.sql.SQLException;
import java.util.Map;
import org.hibernate.test.util.jdbc.PreparedStatementProxyConnectionProvider;
import org.hibernate.testing.jdbc.PreparedStatementProxyConnectionProvider;
import static org.junit.Assert.assertEquals;

View File

@ -6,34 +6,24 @@
*/
package org.hibernate.test.insertordering;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import org.hibernate.Session;
import org.hibernate.cfg.Environment;
import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
import org.hibernate.test.util.jdbc.BasicPreparedStatementObserver;
import org.hibernate.test.util.jdbc.PreparedStatementObserver;
import org.hibernate.test.util.jdbc.PreparedStatementProxyConnectionProvider;
import org.junit.Before;
import org.hibernate.testing.jdbc.BasicPreparedStatementObserver;
import org.hibernate.testing.jdbc.PreparedStatementObserver;
import org.hibernate.testing.jdbc.PreparedStatementProxyConnectionProvider;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
/**

View File

@ -23,7 +23,7 @@
import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
import org.hibernate.test.util.jdbc.PreparedStatementProxyConnectionProvider;
import org.hibernate.testing.jdbc.PreparedStatementProxyConnectionProvider;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

View File

@ -22,8 +22,8 @@
import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
import org.hibernate.test.util.jdbc.BasicPreparedStatementObserver;
import org.hibernate.test.util.jdbc.PreparedStatementProxyConnectionProvider;
import org.hibernate.testing.jdbc.BasicPreparedStatementObserver;
import org.hibernate.testing.jdbc.PreparedStatementProxyConnectionProvider;
import org.junit.Before;
import org.junit.Test;

View File

@ -19,9 +19,9 @@
import org.hibernate.testing.RequiresDialect;
import org.hibernate.testing.TestForIssue;
import org.hibernate.test.util.jdbc.BasicPreparedStatementObserver;
import org.hibernate.test.util.jdbc.PreparedStatementObserver;
import org.hibernate.test.util.jdbc.PreparedStatementProxyConnectionProvider;
import org.hibernate.testing.jdbc.BasicPreparedStatementObserver;
import org.hibernate.testing.jdbc.PreparedStatementObserver;
import org.hibernate.testing.jdbc.PreparedStatementProxyConnectionProvider;
import org.junit.Before;
import org.junit.Test;

View File

@ -4,7 +4,7 @@
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.util.jdbc;
package org.hibernate.testing.jdbc;
import java.lang.reflect.Method;
import java.sql.PreparedStatement;

View File

@ -1,4 +1,4 @@
package org.hibernate.test.util.jdbc;
package org.hibernate.testing.jdbc;
import java.lang.reflect.Method;
import java.sql.PreparedStatement;

View File

@ -4,7 +4,7 @@
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.util.jdbc;
package org.hibernate.testing.jdbc;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
@ -18,8 +18,6 @@
import org.hibernate.engine.jdbc.connections.spi.ConnectionProvider;
import org.hibernate.testing.jdbc.ConnectionProviderDelegate;
/**
* This {@link ConnectionProvider} extends any other ConnectionProvider that would be used by default taken the current configuration properties, and it
* intercept the underlying {@link PreparedStatement} method calls.