资 源 简 介
Some tools thats simplifies testing of java code. For now pack includes only dump uploader for mysql and postgresql.
Simple using. Just put same piece of code to you @BeforeClass method:
new DumpLoadHelper("connection.properties", "dump.sql").load();
or if you want to use few dumps:
new DumpLoadHelper("connection.properties", new String[]{"dump1.sql", "dump2.sql", "dump3.sql"}).load();
or in case if your connection.properties file name is "connection.properties" you can remove this parameter because application use it as default file name:
new DumpLoadHelper("dump.sql").load();
Dump file should be in the classpath.
Connection properties file looks like this:
connection.url=jdbc:postgresql://localhost:5432/daotesthelperconnection.username=postgresconnection.password=root
For now s