Package org.hibernate.testing.orm.junit
Annotation Interface 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:
- 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,DomainModelProducerand/orSessionFactoryProducerinstead.