Package org.dbunit

Examples of org.dbunit.DatabaseUnitException


      IDataSet[] dataSetsArray = new IDataSet[queryDataSets.size()];
            return new CompositeDataSet((IDataSet[])queryDataSets.toArray(dataSetsArray));
        }
        catch (SQLException e)
        {
            throw new DatabaseUnitException(e);
        }
    }
View Full Code Here


            }
            return new CachedDataSet(producer);
        }
        catch (IOException e)
        {
            throw new DatabaseUnitException(e);
        }
    }
View Full Code Here

        // Evaluate the differences and ignore some column values
        List diffList = diffHandler.getDiffList();
        for (Object o : diffList) {
          Difference diff = (Difference) o;
          if (!"[ignore]".equals(diff.getExpectedValue())) {
            throw new DatabaseUnitException(diff.toString());
          }
        }
      }
    } catch (DatabaseUnitException e) {
      fail(e.getMessage());
View Full Code Here

      try {
    IDataSet testDataSet = new FlatXmlDataSet(new FileInputStream(flatXMLFile));
    DatabaseOperation.REFRESH.execute(getDatabaseConnection(),testDataSet);
    testDataSets.add(testDataSet);
      }catch(AmbiguousTableNameException e) {
          throw new DatabaseUnitException("出现AmbiguousTableNameException异常,使用命令:purge recyclebin清空一下oracle回收站,并为dbunit指定jdbcSchema",e);
      }
  }
View Full Code Here

TOP

Related Classes of org.dbunit.DatabaseUnitException

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.