Results 1 to 3 of 3

Thread: Access to a junit's embedded database within db explorer

  1. #1

    Default Access to a junit's embedded database within db explorer

    Is it possible to connect to an embeded database constructed by a junit test in debug mode via STS database explorer, and subsequently run queries against it.

    I have tried but when I connect to the datebase (H2 & HSQL) the connections always have no table contents. A specific example being: The mobile application greenhouse uses embeded databases in its JdbcEventRepositoryTest.java junit tests. The database being established via EmbeddedDatabaseFactory.java. If I stop on breakpoint & use the configuration data for the database within a STS database explorer's connection the resulting schema is empty suggesting either what I am trying to do is not possible or that I have not properly identified the connection parameters.

  2. #2
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,637

    Default

    Hi!

    I moved this question over to the Greenhouse forum, I guess here are more people familiar with the database details of the example.

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  3. #3

    Default

    The question is more related to the embeded database api. Greenhouse is just an example that uses the spring embeded database api.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •