Annotation Interface的使用
cn.taketoday.test.context.jdbc.Sql
使用Sql的程序包
程序包
说明
JDBC support classes for the TestContext Framework,
including support for declarative SQL script execution via
@Sql.-
cn.taketoday.test.context.jdbc中Sql的使用
返回变量类型为Sql的类型的cn.taketoday.test.context.jdbc中的方法修饰符和类型方法说明SqlScriptsTestExecutionListener.getSqlAnnotationsFor(Class<?> clazz) Get the@Sqlannotations declared on the supplied class.SqlScriptsTestExecutionListener.getSqlAnnotationsFor(Method method) Get the@Sqlannotations declared on the supplied method.参数类型为Sql的cn.taketoday.test.context.jdbc中的方法修饰符和类型方法说明private voidSqlScriptsTestExecutionListener.executeSqlScripts(Sql sql, Sql.ExecutionPhase executionPhase, TestContext testContext, boolean classLevel) Execute the SQL scripts configured via the supplied@Sqlannotation for the givenSql.ExecutionPhaseandTestContext.private String[]SqlScriptsTestExecutionListener.getScripts(Sql sql, Class<?> testClass, Method testMethod, boolean classLevel) 类型变量类型为Sql的cn.taketoday.test.context.jdbc中的方法参数修饰符和类型方法说明private voidSqlScriptsTestExecutionListener.executeSqlScripts(Set<Sql> sqlAnnotations, TestContext testContext, Sql.ExecutionPhase executionPhase, boolean classLevel) Execute SQL scripts for the supplied@Sqlannotations.