Package com.github.springtestdbunit.dataset

Examples of com.github.springtestdbunit.dataset.DataSetLoader.loadDataSet()


  }

  private IDataSet loadDataset(DbUnitTestContext testContext, String dataSetLocation) throws Exception {
    DataSetLoader dataSetLoader = testContext.getDataSetLoader();
    if (StringUtils.hasLength(dataSetLocation)) {
      IDataSet dataSet = dataSetLoader.loadDataSet(testContext.getTestClass(), dataSetLocation);
      Assert.notNull(dataSet,
          "Unable to load dataset from \"" + dataSetLocation + "\" using " + dataSetLoader.getClass());
      return dataSet;
    }
    return null;
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.