dbunit

DBUnit dataset export by set of primery key.

I tried to export a dataset from an oracle database by a set of primery keys using: TablesDependencyHelper.getDataset(connection, fullTableName , new TreeSet(Arrays.asList( new BigDecimal[]{new BigDecimal(1)}))); That throws me a data file of 45mb!!!, checking the file I realize that the pr...

Is there a dbunit-like framework that doesn't suck for java/scala?

I was thinking of making a new, light-weight database population framework. I absolutely hate dbunit. Before I do, I want to know if someone already did it. Things i dislike about dbunit: 1) The simplest format to write and get started is deprecated. They want you to use formats that are bloated. Some even require xml schemas. Yeah, wh...

What could make this dsl easier to type or read?

I've written a working grammar to replace dbunit in scala called ScalaDBTest. The whole program works - only took 2 days to write. I got a lot of polishing to do. Anyway, the grammar I'm using for the DSL to input data into the database is malleable and I'd like some feedback on it. The basic syntax looks like this. It's pretty simple...

Loading a different dataset per test method in DBUnit

Hi folks, I'm trying to use DBUnit to test my DAO layer methods. Every method needs different set of seed data. Example: getEmployeeById(Long id) needs data from Employee table updateOrder(CustomerId cId) needs data from Orders table Is there an elegant way to load different seed data before running different methods instead of loa...