Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>Basically, creating each entity programmatically (...) is too unwieldy given the data model and the populate.sql script we already have written (and is executed on DB2 for running our JBoss-hosted web site locally) can't be used on Hypersonic!</p> </blockquote> <p>If you want to reuse your SQL script, you could try H2 with the DB2 compatibility mode, <a href="https://stackoverflow.com/questions/3919613/for-testng-what-is-the-proper-method-for-pre-populating-the-data-source-containi/3920528#3920528">as suggested by @Arthur</a>. If it doesn't work, try JavaDB/Derby, which is DB2's language compatible and can also be used "in-memory".</p> <p>But if the script is huge, I'm afraid tests will be pretty slow. In that case, using DbUnit and smaller dataset could be an alternative. Have a look at the built-in <a href="http://docs.jboss.org/seam/2.2.1.CR2/api/org/jboss/seam/mock/DBUnitSeamTest.html" rel="nofollow noreferrer"><code>DBUnitSeamTest</code></a> and <a href="http://relation.to/1420.lace" rel="nofollow noreferrer">Functional testing with Seam, DBUnit, and TestNG</a>.</p> <p>And if you go the DbUnit way, you could use a tool like <a href="http://databene.org/databene-benerator" rel="nofollow noreferrer">databene benerator</a> to <a href="https://stackoverflow.com/questions/591892/614382#614382">generate mock data</a> and then dump them as DbUnit dataset (there is <a href="http://databene.org/benclipse.html" rel="nofollow noreferrer">an eclipse plugin</a> to ease this task).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload