Commits

tbrugz committed b94fb7c

test: added FailoverTest.testSimpleNoFailover()

  • Participants
  • Parent commits 2093929

Comments (0)

Files changed (3)

File src_test/tbrugz/sqldump/AllTestSuite.java

 import tbrugz.sqldiff.SQLDiff;
 import tbrugz.sqldiff.test.SQLDiffTest;
 import tbrugz.sqldump.datadump.DataDumpTest;
+import tbrugz.sqldump.sqlrun.FailoverTest;
 import tbrugz.sqldump.sqlrun.SQLRunAndDumpTest;
 import tbrugz.sqldump.test.SQLDumpTestSuite;
 import tbrugz.sqldump.util.ParametrizedPropertiesTest;
 @SuiteClasses({
 	CSVImportTest.class,
 	DataDumpTest.class,
+	FailoverTest.class,
 	ParametrizedPropertiesTest.class,
 	SQLDumpTestSuite.class,
 	SQLDiffTest.class,

File src_test/tbrugz/sqldump/sqlrun/FailoverTest.java

 		};
 		SQLRun.main(params);
 	}
+
+	@Test
+	public void testSimpleNoFailover() throws Exception {
+		String[] params = {
+				"-propfile=src_test/tbrugz/sqldump/sqlrun/failover-simple-no.properties",
+				"-usesysprop=false"
+		};
+		SQLRun.main(params);
+	}
 }

File src_test/tbrugz/sqldump/sqlrun/failover-simple-no.properties

+
+
+sqlrun.exec.29.statement=drop table IF EXISTS simple
+
+sqlrun.exec.30.statement=create table IF NOT EXISTS simple (\
+ pattern varchar(20)\
+)
+
+sqlrun.exec.40.import=regex
+sqlrun.exec.40.importdir=src_test/tbrugz/sqldump/sqlrun
+sqlrun.exec.40.importfiles=failover-simple
+
+sqlrun.exec.40.pattern=(a+b+)
+sqlrun.exec.40.insertsql=insert into simple (pattern) values (${0})
+
+sqlrun.driverclass=org.h2.Driver
+sqlrun.dburl=jdbc:h2:work/db/failover
+sqlrun.user=h
+sqlrun.password=h