Class TestingDatabaseHelper
-
- All Implemented Interfaces:
public class TestingDatabaseHelper- Since:
2020-05-22
trydofor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumTestingDatabaseHelper.Type
-
Field Summary
Fields Modifier and Type Field Description public final DataSourceContextdataSourceContext
-
Constructor Summary
Constructors Constructor Description TestingDatabaseHelper(DataSourceContext context)
-
Method Summary
Modifier and Type Method Description DataSourceContextgetDataSourceContext()booleanhasH2()voidcleanTable()DROP DATABASE IF EXISTS wings; CREATE DATABASE `wings` DEFAULT CHARACTER SET utf8mb4; voidcleanTable(DataSource dataSource, String info)voidassertSame(TestingDatabaseHelper.Type type, Array<String> str)voidassertHas(TestingDatabaseHelper.Type type, Array<String> str)voidassertNot(TestingDatabaseHelper.Type type, Array<String> str)static voidtestcaseNotice(Array<String> mes)static voidbreakpointDebug(Array<String> mes)static voidexecWingsSql(JdbcTemplate jdbcTemplate, String path)-
-
Method Detail
-
getDataSourceContext
DataSourceContext getDataSourceContext()
-
hasH2
boolean hasH2()
-
cleanTable
void cleanTable()
DROP DATABASE IF EXISTS wings; CREATE DATABASE `wings` DEFAULT CHARACTER SET utf8mb4;
-
cleanTable
void cleanTable(DataSource dataSource, String info)
-
assertSame
void assertSame(TestingDatabaseHelper.Type type, Array<String> str)
-
assertHas
void assertHas(TestingDatabaseHelper.Type type, Array<String> str)
-
assertNot
void assertNot(TestingDatabaseHelper.Type type, Array<String> str)
-
testcaseNotice
static void testcaseNotice(Array<String> mes)
-
breakpointDebug
static void breakpointDebug(Array<String> mes)
-
execWingsSql
static void execWingsSql(JdbcTemplate jdbcTemplate, String path)
-
-
-
-