[Biojava-dev] biojavax stress test

Michael Heuer heuermh at acm.org
Wed Jan 11 23:52:05 EST 2006


Mark Schreiber wrote:

> Right now we need people to stress test the new biojavax packages
> available in CVS. Some more Unit tests for biojavax would also be great.
> Especially ones that test for cases identified in stress testing.

Hello Mark,

Along these lines I tried to put together a functional test setup for the
biojavax packages, but ran into a bit of a problem.  I'd like to:

 - create an in-memory database and connection using HSQLDB

 - load the biosql DDL into the in-memory database using straight jdbc

 - load the hibernate mappings and create a hibernate session

 - load the taxon files into the database, using hibernate

 - load a handful of sequences from flat files into the database

 - run tests on the sequences pulled from the database (or the cache, as
it may be)

Unfortunately I'm stuck at the hibernate config part -- does anyone know
how to load the mappings and create a session from an existing Connection?

The Hibernate config works fine from a config file and an external
database, but I would really like to do everything in code, so that it
can be used in a set up method for tests.

   michael



More information about the biojava-dev mailing list