程序包 org.springframework.test.context.jdbc
JDBC support classes for the Spring TestContext Framework, including support for declarative SQL script execution via
@Sql.类概要 类 说明 SqlScriptsTestExecutionListener TestExecutionListenerthat provides support for executing SQLscriptsand inlinedstatementsconfigured via the@Sqlannotation.枚举概要 枚举 说明 Sql.ExecutionPhase Enumeration of phases that dictate when SQL scripts are executed.SqlConfig.ErrorMode Enumeration of modes that dictate how errors are handled while executing SQL statements.SqlConfig.TransactionMode Enumeration of modes that dictate whether SQL scripts should be executed within a transaction and what the transaction propagation behavior should be.SqlMergeMode.MergeMode Enumeration of modes that dictate whether method-level@Sqldeclarations are merged with class-level@Sqldeclarations.注释类型概要 注释类型 说明 Sql @Sqlis used to annotate a test class or test method to configure SQLSql.scripts()andSql.statements()to be executed against a given database during integration tests.SqlConfig @SqlConfigdefines metadata that is used to determine how to parse and execute SQL scripts configured via the@Sqlannotation.SqlGroup Container annotation that aggregates several@Sqlannotations.SqlMergeMode @SqlMergeModeis used to annotate a test class or test method to configure whether method-level@Sqldeclarations are merged with class-level@Sqldeclarations.