Package org.jboss.arquillian.persistence.data.dbunit.exception

Examples of org.jboss.arquillian.persistence.data.dbunit.exception.DBUnitDataSetHandlingException


         DataDump dumpData = createDataDump(path, dbContent);
         commandService.get().execute(new DumpDataCommand(dumpData));
      }
      catch (Exception e)
      {
         throw new DBUnitDataSetHandlingException("Unable to dump database state to folder " + path, e);
      }
   }
View Full Code Here


      {
         fillDatabase();
      }
      catch (Exception e)
      {
         throw new DBUnitDataSetHandlingException("Failed while seeding database.", e);
      }
   }
View Full Code Here

         IDataSet expectedDataSet = DataSetUtils.mergeDataSets(dataSetRegister.get().getExpected());
         new DataSetComparator(compareDataEvent.getColumnsToExclude()).compare(currentDataSet, expectedDataSet, assertionErrorCollector.get());
      }
      catch (Exception e)
      {
         throw new DBUnitDataSetHandlingException("Failed while comparing database state with provided data sets.", e);
      }
   }
View Full Code Here

         statement = databaseConnection.get().getConnection().createStatement();
         statement.execute(script);
      }
      catch (Exception e)
      {
         throw new DBUnitDataSetHandlingException("Unable to execute script: " + script, e);
      }
      finally
      {
         if (statement != null)
         {
            try
            {
               statement.close();
            }
            catch (SQLException e)
            {
               throw new DBUnitDataSetHandlingException("Unable to close statement after script execution.", e);
            }
         }
      }
   }
View Full Code Here

         final IDataSet dataSet = DataSetUtils.mergeDataSets(dataSetRegister.getInitial());
         new TransactionOperation(DatabaseOperation.DELETE_ALL).execute(connection, dataSet);
      }
      catch (Exception e)
      {
         throw new DBUnitDataSetHandlingException("Unable to clean database.", e);
      }
   }
View Full Code Here

         final IDataSet dataSet = connection.createDataSet();
         new TransactionOperation(DatabaseOperation.DELETE_ALL).execute(connection, dataSet);
      }
      catch (Exception e)
      {
         throw new DBUnitDataSetHandlingException("Unable to clean database.", e);
      }
   }
View Full Code Here

         final IDataSet dataSet = DataSetUtils.mergeDataSets(dataSetRegister.getInitial());
         new TransactionOperation(DatabaseOperation.DELETE).execute(connection, dataSet);
      }
      catch (Exception e)
      {
         throw new DBUnitDataSetHandlingException("Unable to clean database.", e);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.persistence.data.dbunit.exception.DBUnitDataSetHandlingException

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.