Skip to content

Commit 476518b

Browse files
committed
HHH-19846 - Drop JUnit 4 usage: correction to ManipulationCriteriaTest (that somehow slipped through the maze)
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
1 parent bed39fb commit 476518b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria/ManipulationCriteriaTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import jakarta.persistence.criteria.Root;
1212
import jakarta.persistence.criteria.Subquery;
1313

14+
import org.hibernate.cfg.JpaComplianceSettings;
1415
import org.hibernate.dialect.MySQLDialect;
1516
import org.hibernate.orm.test.jpa.metamodel.Address;
1617
import org.hibernate.orm.test.jpa.metamodel.Alias;
@@ -26,6 +27,7 @@
2627
import org.hibernate.testing.orm.junit.EntityManagerFactoryScope;
2728
import org.hibernate.testing.orm.junit.JiraKey;
2829
import org.hibernate.testing.orm.junit.Jpa;
30+
import org.hibernate.testing.orm.junit.Setting;
2931
import org.hibernate.testing.orm.junit.SkipForDialect;
3032

3133
import org.junit.jupiter.api.AfterEach;
@@ -41,7 +43,7 @@
4143
@Jpa(
4244
annotatedClasses = {Customer.class, Address.class, Alias.class, CreditCard.class, Order.class, LineItem.class,
4345
Product.class, Spouse.class, Info.class, Phone.class},
44-
queryComplianceEnabled = true
46+
integrationSettings = {@Setting(name = JpaComplianceSettings.JPA_QUERY_COMPLIANCE, value = "true")}
4547
)
4648
public class ManipulationCriteriaTest {
4749

0 commit comments

Comments
 (0)