Package org.hibernate.testing.orm.junit
Annotation Type SessionFactoryFunctionalTesting
-
@Inherited @Retention(RUNTIME) @Target({TYPE,METHOD}) @TestInstance(PER_CLASS) @ExtendWith(FailureExpectedExtension.class) @ExtendWith(SessionFactoryExtension.class) public @interface SessionFactoryFunctionalTesting
Composite annotation for functional tests that require a functioning SessionFactory.- See Also:
SessionFactoryExtension
,DialectFilterExtension
,FailureExpectedExtension
- API Note:
- Applies support for SessionFactory-based testing. Up to the test to define
configuration (via
ServiceRegistry
), mappings (viaDomainModel
) and/or SessionFactory-options (viaSessionFactory
). Rather than using these other annotations, tests could just implement building those individual pieces viaServiceRegistryProducer
,DomainModelProducer
and/orSessionFactoryProducer
instead.