Package org.databene.dbsanity.util

Examples of org.databene.dbsanity.util.ConstantVersionProvider


    DbSanity dbSanity = new DbSanity();
    dbSanity.setCheckDefinitionFile(checkFile);
    dbSanity.setReportFolder(context.reportFile("dbsanity-report"));
    dbSanity.setEnvironment(config.getEnvironment1());
    dbSanity.setDefectCountLimit(config.getDefectCountLimit());
    dbSanity.setVersionProvider(new ConstantVersionProvider(config.getAppVersion()));
    dbSanity.setMetaDataCached(config.isMetaDataCached());
    dbSanity.setIgnorableTables(config.getTableExclusionPattern());
    if (config.getAppVersion() != null)
      dbSanity.setVersionProvider(new ConstantVersionProvider(config.getAppVersion()));
   
    // evaluate DB Sanity results
    SanityCheckSuite suite = dbSanity.execute();
    if (suite.countErredChecks() > 0)
      LOGGER.error("Some checks resulted in SQL errors. " +
View Full Code Here

TOP

Related Classes of org.databene.dbsanity.util.ConstantVersionProvider

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.