Class DialectTestKit
java.lang.Object
org.hibernate.dialect.testing.DialectTestKit
@Incubating(since="8.0",
group="dialect-testkit")
@SPI(USE)
public final class DialectTestKit
extends Object
Entry point for the provider-oriented, database-free Dialect contract test kit.
Add a provider-owned JUnit @TestFactory which returns
DialectTestKit.contractTests(profile). The returned tests exercise
Hibernate's real metadata, SQM, SQL AST, and schema-generation pipelines.
They are compatibility smoke tests, not certification against a live
database.
This class is stateless and thread-safe. Each opened context is thread-confined.
- Since:
- 8.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.junit.jupiter.api.DynamicContainercontractTests(DialectContractProfile profile) Build the complete dynamic contract suite for one provider profile.static DialectTestContextopenContext(DialectContractProfile profile) Open a context for provider-specific assertions outside the generic dynamic suite.
-
Method Details
-
contractTests
@SPI(SUPPLY) public static org.junit.jupiter.api.DynamicContainer contractTests(DialectContractProfile profile) Build the complete dynamic contract suite for one provider profile.- See Also:
-
openContext
Open a context for provider-specific assertions outside the generic dynamic suite.- See Also:
-