Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Classes
  • Annotation Interfaces
  • Methods
  • Terminally Deprecated Elements
    Element
    Description
    org.hibernate.testing.AfterClassOnce
    Use JUnit 5 along with one of the Hibernate ORM's class-level test annotations (BaseUnitTest, SessionFactory, Jpa, SessionFactoryFunctionalTesting, ServiceRegistryFunctionalTesting, ...) and AfterAll. Alternatively to the Hibernate ORM test annotations, you can use @TestInstance(TestInstance.Lifecycle.PER_CLASS) directly on your test.
    org.hibernate.testing.BeforeClassOnce
    Use JUnit 5 along with one of the Hibernate ORM's class-level test annotations (BaseUnitTest, SessionFactory, Jpa, SessionFactoryFunctionalTesting, ServiceRegistryFunctionalTesting, ...) and BeforeAll. Alternatively to the Hibernate ORM test annotations, you can use @TestInstance(TestInstance.Lifecycle.PER_CLASS) directly on your test.
    org.hibernate.testing.FailureExpected
    Use JUnit 5 and FailureExpected instead.
    org.hibernate.testing.OnExpectedFailure
    No replacement with JUnit 5 at the moment.
    org.hibernate.testing.OnFailure
    No replacement with JUnit 5 at the moment.
    org.hibernate.testing.orm.junit.NotImplementedYetException
    By definition, something "not yet implemented" is something we are actively seeking to remove
    org.hibernate.testing.RequiresDialect
    Use JUnit 5 and RequiresDialect instead.
    org.hibernate.testing.RequiresDialectFeature
    Use JUnit 5 and RequiresDialectFeature instead.
    org.hibernate.testing.RequiresDialects
    Use JUnit 5 and RequiresDialects instead.
    org.hibernate.testing.Skip
    Use JUnit 5 and DisabledOnOs or DisabledIf.
    org.hibernate.testing.SkipForDialect
    Use JUnit 5 and SkipForDialect instead.
    org.hibernate.testing.SkipForDialects
    Use JUnit 5 and SkipForDialectGroup instead.
  • Deprecated Interfaces
    Interface
    Description
    org.hibernate.testing.orm.junit.NotImplementedYetException
    By definition, something "not yet implemented" is something we are actively seeking to remove
  • Deprecated Classes
    Class
    Description
    org.hibernate.testing.jdbc.SQLStatementInterceptor
    use SQLStatementInspector instead
  • Deprecated Annotation Interfaces
    Annotation Interface
    Description
    org.hibernate.testing.AfterClassOnce
    Use JUnit 5 along with one of the Hibernate ORM's class-level test annotations (BaseUnitTest, SessionFactory, Jpa, SessionFactoryFunctionalTesting, ServiceRegistryFunctionalTesting, ...) and AfterAll. Alternatively to the Hibernate ORM test annotations, you can use @TestInstance(TestInstance.Lifecycle.PER_CLASS) directly on your test.
    org.hibernate.testing.BeforeClassOnce
    Use JUnit 5 along with one of the Hibernate ORM's class-level test annotations (BaseUnitTest, SessionFactory, Jpa, SessionFactoryFunctionalTesting, ServiceRegistryFunctionalTesting, ...) and BeforeAll. Alternatively to the Hibernate ORM test annotations, you can use @TestInstance(TestInstance.Lifecycle.PER_CLASS) directly on your test.
    org.hibernate.testing.FailureExpected
    Use JUnit 5 and FailureExpected instead.
    org.hibernate.testing.OnExpectedFailure
    No replacement with JUnit 5 at the moment.
    org.hibernate.testing.OnFailure
    No replacement with JUnit 5 at the moment.
    org.hibernate.testing.RequiresDialect
    Use JUnit 5 and RequiresDialect instead.
    org.hibernate.testing.RequiresDialectFeature
    Use JUnit 5 and RequiresDialectFeature instead.
    org.hibernate.testing.RequiresDialects
    Use JUnit 5 and RequiresDialects instead.
    org.hibernate.testing.Skip
    Use JUnit 5 and DisabledOnOs or DisabledIf.
    org.hibernate.testing.SkipForDialect
    Use JUnit 5 and SkipForDialect instead.
    org.hibernate.testing.SkipForDialects
    Use JUnit 5 and SkipForDialectGroup instead.
  • Deprecated Methods
    Method
    Description
    org.hibernate.testing.transaction.TransactionUtil.setJdbcTimeout(Session)
    Use TransactionUtil.withJdbcTimeout(Session, Runnable) instead
    org.hibernate.testing.transaction.TransactionUtil.setJdbcTimeout(Session, long)
    Use TransactionUtil.withJdbcTimeout(Session, long, Runnable) instead

Copyright © 2001-2025 Red Hat, Inc. All Rights Reserved.