Package com.github.springtestdbunit.annotation

Examples of com.github.springtestdbunit.annotation.DatabaseOperation


  private void setupOrTeardown(DbUnitTestContext testContext, boolean isSetup,
      Collection<AnnotationAttributes> annotations) throws Exception {
    IDatabaseConnection connection = testContext.getConnection();
    for (AnnotationAttributes annotation : annotations) {
      List<IDataSet> datasets = loadDataSets(testContext, annotation);
      DatabaseOperation operation = annotation.getType();
      org.dbunit.operation.DatabaseOperation dbUnitOperation = getDbUnitDatabaseOperation(testContext, operation);
      if (!datasets.isEmpty()) {
        if (logger.isDebugEnabled()) {
          logger.debug("Executing " + (isSetup ? "Setup" : "Teardown") + " of @DatabaseTest using "
              + operation + " on " + datasets.toString());
View Full Code Here

TOP

Related Classes of com.github.springtestdbunit.annotation.DatabaseOperation

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.