Skip to content

Commit 45e1414

Browse files
committed
HHH-19846 - Drop JUnit 4 usage
Not converted... * org.hibernate.orm.test.hql.PostgreSQLFunctionSelectClauseTest - registering custom function * org.hibernate.orm.test.hql.PostgreSQLFunctionWhereClauseTest - aux-db-object * org.hibernate.orm.test.id.usertype - type registrations * org.hibernate.orm.test.idgen.enhanced.HiloOptimizerConcurrencyTest - recreation of SF during tests * org.hibernate.orm.test.type.AbstractJavaTimeTypeTest subtypes - crazy parameterization (see org.hibernate.orm.test.tm.InterceptorTransactionTest) * org.hibernate.orm.test.cdi.general.hibernatesearch.extended.HibernateSearchExtendedCdiSupportTest - not sure yet, all the other tests here pass with conversion - shelved for now
1 parent 7470134 commit 45e1414

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/where/hbm/EagerManyToOneFetchModeSelectWhereTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@
1010

1111
import org.hibernate.testing.orm.junit.DomainModel;
1212
import org.hibernate.testing.orm.junit.JiraKey;
13+
import org.hibernate.testing.orm.junit.ServiceRegistry;
1314
import org.hibernate.testing.orm.junit.SessionFactory;
1415
import org.hibernate.testing.orm.junit.SessionFactoryScope;
16+
import org.hibernate.testing.orm.junit.Setting;
1517
import org.junit.jupiter.api.AfterEach;
1618
import org.junit.jupiter.api.Test;
1719

20+
import static org.hibernate.cfg.MappingSettings.IMPLICIT_NAMING_STRATEGY;
1821
import static org.junit.jupiter.api.Assertions.assertEquals;
1922
import static org.junit.jupiter.api.Assertions.assertNotNull;
2023
import static org.junit.jupiter.api.Assertions.assertNull;
@@ -24,6 +27,7 @@
2427
* @author Gail Badner
2528
*/
2629
@SuppressWarnings("JUnitMalformedDeclaration")
30+
@ServiceRegistry(settings = @Setting(name=IMPLICIT_NAMING_STRATEGY, value = "legacy-jpa"))
2731
@DomainModel(xmlMappings = "hbm/where/EagerManyToOneFetchModeSelectWhereTest.hbm.xml")
2832
@SessionFactory
2933
public class EagerManyToOneFetchModeSelectWhereTest {

0 commit comments

Comments
 (0)