mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-22 11:06:08 +00:00
HHH-11617 : Move helpers to hibernate-testing so tests in hibernate-entitymanager can access them
This commit is contained in:
parent
0fbaac8480
commit
d6ab67ac50
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
@ -1,4 +1,4 @@
|
||||
package org.hibernate.test.util.jdbc;
|
||||
package org.hibernate.testing.jdbc;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.sql.PreparedStatement;
|
@ -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.
|
Loading…
x
Reference in New Issue
Block a user