mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-03-02 07:49:23 +00:00
HHH-14227 fix testing failure on Oracle
This commit is contained in:
parent
64f8314ea1
commit
74218d84c4
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||||
|
|
||||||
|
import org.hibernate.testing.DialectChecks;
|
||||||
|
import org.hibernate.testing.RequiresDialectFeature;
|
||||||
import org.hibernate.testing.TestForIssue;
|
import org.hibernate.testing.TestForIssue;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@ -20,6 +22,7 @@
|
|||||||
* @author Nathan Xu
|
* @author Nathan Xu
|
||||||
*/
|
*/
|
||||||
@TestForIssue( jiraKey = "HHH-14231" )
|
@TestForIssue( jiraKey = "HHH-14231" )
|
||||||
|
@RequiresDialectFeature( DialectChecks.SupportsExpectedLobUsagePattern.class )
|
||||||
public class ScrollableResultsObjectArrayCastingTest extends BaseEntityManagerFunctionalTestCase {
|
public class ScrollableResultsObjectArrayCastingTest extends BaseEntityManagerFunctionalTestCase {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -31,7 +34,7 @@ protected Class<?>[] getAnnotatedClasses() {
|
|||||||
public void SetUp() {
|
public void SetUp() {
|
||||||
doInJPA( this::entityManagerFactory, entityManager -> {
|
doInJPA( this::entityManagerFactory, entityManager -> {
|
||||||
Product product = new Product();
|
Product product = new Product();
|
||||||
product.binaryValue = "".getBytes();
|
product.binaryValue = new byte[] { 1, 2, 3 };
|
||||||
entityManager.persist( product );
|
entityManager.persist( product );
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user