Examples of assertionMode()


Examples of com.github.springtestdbunit.annotation.ExpectedDatabase.assertionMode()

      IDataSet expectedDataSet = loadDataset(testContext, annotation.value());
      if (expectedDataSet != null) {
        if (logger.isDebugEnabled()) {
          logger.debug("Veriftying @DatabaseTest expectation using " + annotation.value());
        }
        DatabaseAssertion assertion = annotation.assertionMode().getDatabaseAssertion();
        if (StringUtils.hasLength(query)) {
          Assert.hasLength(table, "The table name must be specified when using a SQL query");
          ITable expectedTable = expectedDataSet.getTable(table);
          ITable actualTable = connection.createQueryTable(table, query);
          assertion.assertEquals(expectedTable, actualTable);
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.