Package com.github.springtestdbunit.dataset

Examples of com.github.springtestdbunit.dataset.DataSetLoader


    }
    return datasets;
  }

  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

Related Classes of com.github.springtestdbunit.dataset.DataSetLoader

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.