Examples of clearSchema()


Examples of ch.inftec.ju.testing.db.DbSchemaUtil.clearSchema()

public class DbSchemaUtilTest extends AbstractDbTest {
  @Test
  public void tablesAreCreated_usingLiquibaseExplicitly() {
    DbSchemaUtil su = new DbSchemaUtil(this.em);
   
    su.clearSchema();
    Assert.assertFalse(JuCollectionUtils.collectionContainsIgnoreCase(this.emUtil.getTableNames(), "TestingEntity_LB"));
   
    su.runLiquibaseChangeLog("ch/inftec/ju/dbutil/test/LiquibaseTestDataTest_testingEntity.xml");
   
    Assert.assertTrue(JuCollectionUtils.collectionContainsIgnoreCase(this.emUtil.getTableNames(), "TestingEntity_LB"));
View Full Code Here

Examples of ch.inftec.ju.testing.db.DbSchemaUtil.clearSchema()

 
  @Test
  public void tablesAreCreated_usingFlywayExplicitly() {
    DbSchemaUtil su = new DbSchemaUtil(this.em);
   
    su.clearSchema();
    Assert.assertFalse(JuCollectionUtils.collectionContainsIgnoreCase(this.emUtil.getTableNames(), "TESTINGENTITY_FW"));
   
    su.runFlywayMigration("db/DbSchemaUtilTest-migration");
   
    Assert.assertTrue(JuCollectionUtils.collectionContainsIgnoreCase(this.emUtil.getTableNames(), "TESTINGENTITY_FW"));
View Full Code Here

Examples of ch.inftec.ju.testing.db.DbSchemaUtil.clearSchema()

   */
  @Test
  public void liquibase_canUseReplaceOrExists() {
    DbSchemaUtil su = new DbSchemaUtil(this.em);
   
    su.clearSchema();
    su.runLiquibaseChangeLog("ch/inftec/ju/dbutil/test/DbSchemaUtilTest_liquibase_canUseReplaceOrExists.xml");
  }
}
View Full Code Here

Examples of ch.inftec.ju.testing.db.DbSchemaUtil.clearSchema()

   */
  @Test
  public void liquibase_canUseReplaceOrExists() {
    DbSchemaUtil su = new DbSchemaUtil(this.em);
   
    su.clearSchema();
    su.runLiquibaseChangeLog("ch/inftec/ju/dbutil/test/DbSchemaUtilTest_liquibase_canUseReplaceOrExists.xml");
  }

  /**
   * Make sure we can set Liquibaes changeLog parameters.
View Full Code Here

Examples of ch.inftec.ju.testing.db.DbSchemaUtil.clearSchema()

   */
  @Test
  public void canSet_changeLogParameters() {
    DbSchemaUtil su = new DbSchemaUtil(this.em);

    su.clearSchema();
    su.liquibaseChangeLog()
        .changeLogResource("ch/inftec/ju/dbutil/test/DbSchemaUtilTest_liquibase_canUseChangeLogParameters.xml")
        .parameter("myTableName", "TestingEntity_LB")
        .parameter("myName", "FooBar")
        .run();
View Full Code Here

Examples of ch.inftec.ju.testing.db.DbSchemaUtil.clearSchema()

public class DbSchemaUtilTest extends AbstractDbTest {
  @Test
  public void tablesAreCreated_usingLiquibaseExplicitly() {
    DbSchemaUtil su = new DbSchemaUtil(this.em);
   
    su.clearSchema();
    Assert.assertFalse(JuCollectionUtils.collectionContainsIgnoreCase(this.emUtil.getTableNames(), "TestingEntity_LB"));
   
    su.runLiquibaseChangeLog("ch/inftec/ju/dbutil/test/LiquibaseTestDataTest_testingEntity.xml");
   
    Assert.assertTrue(JuCollectionUtils.collectionContainsIgnoreCase(this.emUtil.getTableNames(), "TestingEntity_LB"));
View Full Code Here

Examples of ch.inftec.ju.testing.db.DbSchemaUtil.clearSchema()

 
  @Test
  public void tablesAreCreated_usingFlywayExplicitly() {
    DbSchemaUtil su = new DbSchemaUtil(this.em);
   
    su.clearSchema();
    Assert.assertFalse(JuCollectionUtils.collectionContainsIgnoreCase(this.emUtil.getTableNames(), "TESTINGENTITY_FW"));
   
    su.runFlywayMigration("db/DbSchemaUtilTest-migration");
   
    Assert.assertTrue(JuCollectionUtils.collectionContainsIgnoreCase(this.emUtil.getTableNames(), "TESTINGENTITY_FW"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.