My favorites | Sign in
Project Logo
                
Search
for
Updated Apr 07, 2009 by dglinenko
Labels: Phase-Implementation, Featured
UserGuide  
How to use dbassert library

Instructions

  1. Download the library from downloads page.
  2. Put it under your classpath.
  3. Define your datasources using YAML in some file
  4. postgres:
        url: jdbc:postgresql://127.0.0.1/test
        username: postgres
        password: postgres
        driver: org.postgresql.Driver
    
    hsqlSource:
        url: jdbc:hsqldb:file:testSrc
        username: sa
        password:
        driver: org.hsqldb.jdbcDriver
  5. Intialize DbAssert using with the datasources file and start using it.

The dependencies are:

  • JYaml - JYaml is a Java library for working with the Yaml file format.

All database settings and fixtures use that format.

  • HSQLDB - if you want to use fake sources, like dbAssert.fake_source("my_fake_source");
in this case in-memory database instance will be created.


Sign in to add a comment
Hosted by Google Code