Examples of ExpectedDataSetConfiguration


Examples of com.excilys.ebi.spring.dbunit.config.ExpectedDataSetConfiguration

            dataLoader.execute(testContext.getApplicationContext(), getConfiguration(testContext), Phase.TEARDOWN);
        }
    }

    private void checkDatas(TestContext testContext) throws Exception {
        ExpectedDataSetConfiguration expectedConfiguration = getExpectedConfiguration(testContext);
        if (expectedConfiguration != null) {
            IDataSet expectedDataSet = expectedConfiguration.getDataSet();
            for (String tableName : expectedDataSet.getTableNames()) {
                IDataSet dataSet = dataReader.execute(testContext.getApplicationContext(), getExpectedConfiguration(testContext), tableName);
                String[] columnsToIgnore = expectedConfiguration.getColumnsToIgnore();
                if (columnsToIgnore == null || columnsToIgnore.length == 0) {
                    Assertion.assertEquals(expectedDataSet, dataSet);
                } else {
                    Assertion.assertEqualsIgnoreCols(expectedDataSet, dataSet, tableName, columnsToIgnore);
                }
View Full Code Here

Examples of com.excilys.ebi.spring.dbunit.config.ExpectedDataSetConfiguration

     * @throws DatabaseUnitException DBUnit failure
     */
    @Override
    public ExpectedDataSetConfiguration getExpectedConfiguration(TestContext testContext) {

        ExpectedDataSetConfiguration configuration = expectedConfigurationCache.get(testContext.getTestMethod());

        if (configuration == null) {
            // no cached configuration --> instancing it
            ExpectedDataSet expectedDataSetAnnotation = findAnnotation(testContext.getTestMethod(), testContext.getTestClass(), ExpectedDataSet.class);

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.