Package ch.inftec.ju.testing.db

Examples of ch.inftec.ju.testing.db.DbSchemaUtil


    Assert.assertTrue(JuCollectionUtils.collectionContainsIgnoreCase(this.emUtil.getTableNames(), "TestingEntity_LB"));
  }
 
  @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


   * Check if we can use the replaceOrExists tag. Liquibase doesn't support it with Derby, throwing an Exception.
   * Therefore we filter the change logs before submitting them to Liquibase.
   */
  @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

public class NativeQueryBuilderTest extends AbstractDbTest {
  @Override
  protected void runDbInitializationScripts(JuEmfUtil emfUtil) {
    try (EmfWork ew = emfUtil.startWork()) {
      new DbSchemaUtil(ew.getEm()).prepareDefaultSchemaAndTestData();;
    }
  }
View Full Code Here

TOP

Related Classes of ch.inftec.ju.testing.db.DbSchemaUtil

Copyright © 2018 www.massapicom. 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.