Re: tests against other databases

From: ïÌØÇÁ ôËÁÞÅ× (tkachovaolg..mail.com)
Date: Tue Nov 10 2009 - 06:49:40 EST

  • Next message: Andrey Razumovsky: "EJBQL doesn't support null parameters"

    No, all DB can run completely within maven in this way

    2009/11/10 Aristedes Maniatis <ar..sh.com.au>

    > When I run:
    >
    > mvn test -Dcayenne.test.connection=h2
    >
    > or
    >
    > mvn test -Dcayenne.test.connection=derby
    >
    >
    > I don't think those other databases are being used for the tests. I always
    > see this in the log output:
    >
    > Nov 10, 2009 10:40:32 PM org.apache.cayenne.unit.CayenneResources
    > setupTestDir
    > INFO: No property 'cayenne.test.dir' set. Using default directory:
    > 'target/testrun'
    > Nov 10, 2009 10:40:32 PM org.apache.cayenne.unit.CayenneResources
    > setConnectionKey
    > INFO: Invalid connection key 'h2', trying default:
    > internal_embedded_datasource
    > Nov 10, 2009 10:40:32 PM org.apache.cayenne.unit.CayenneResources
    > setConnectionKey
    > INFO: test connection info: [org.apache.cayenne.conn.DataSourceInfo:
    > user name: sa
    > password: **********
    > driver: org.hsqldb.jdbcDriver
    > db adapter class: org.apache.cayenne.dba.hsqldb.HSQLDBAdapter
    > url: jdbc:hsqldb:mem:aname
    > min. connections: 1
    > max. connections: 1
    > ]
    >
    >
    > Is HSQLDB the only database which can run completely within maven in this
    > way? Do all others, even the pure Java ones, require an external database to
    > be already set up and connection.properties installed?
    >
    >
    > Ari
    >
    >
    >
    >
    > --
    >
    > -------------------------->
    > ish
    > http://www.ish.com.au
    > Level 1, 30 Wilson Street Newtown 2042 Australia
    > phone +61 2 9550 5001 fax +61 2 9550 4001
    > GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
    >

    -- 
    Olga
    



    This archive was generated by hypermail 2.0.0 : Tue Nov 10 2009 - 06:50:12 EST