/** * set up. * @throws Exception if failed */ @Before public void setUp() throws Exception { BulkLoaderInitializer.initDBServer(testJobflowId, testExecutionId, properties, "target1"); UnitTestUtil.setUpDB(); UnitTestUtil.startUp(); Connection connection = DBConnection.getConnection(); Statement statement = null; try { statement = connection.createStatement(); statement.execute("DROP TABLE IF EXISTS __TG_TEST1"); statement.execute("DROP TABLE IF EXISTS __TG_TEST2"); statement.execute("CREATE TABLE __TG_TEST1 ( VALUE DATETIME ) ENGINE=InnoDB"); statement.execute("CREATE TABLE __TG_TEST2 ( VALUE VARCHAR(200) ) ENGINE=InnoDB"); } finally { connection.close(); } }