Re: Running cayenne tests

From: Mike Kienenberger (mkienen..laska.net)
Date: Fri Feb 11 2005 - 21:12:19 EST

  • Next message: Mike Kienenberger: "Resolved/Closed"

    Andrus Adamchik <andru..bjectstyle.org> wrote:
    > Out of all databases that we support, HSQLDB is probably the easiest one
    > to get running and maintain. Download it, unpack, and run the startup
    > script. From there just update your ~/.cayenne/connection.properties with
    > this data:

    The startup script doesn't exist :)

    Eventually, I figured out I could simply stick

    test-hsqldb.jdbc.url = jdbc:hsqldb:mem:aname

    in my connections file, and include hsqldb.jar in the classpath.

    That seems like an easy behavior to default into if there's no
    cayenne.test.connection property defined....

    Also, are the regression tests supposed to work? Mine all fail with a
    similar error to below using jdbc:hsqldb:mem:aname: as well as with
    OpenBase.

    [java] Schema 1 failed.
    [java] org.objectstyle.cayenne.CayenneRuntimeException: [v.1.2-dev February
    11 2005] Entity 'Table2' has no parent MappingNamespace (such as DataMap)
    [java] at
    org.objectstyle.cayenne.map.Entity.getNonNullNamespace(Entity.java:330)
    [java] at
    org.objectstyle.cayenne.map.ObjEntity.getDbEntity(ObjEntity.java:317)
    [java] at
    org.objectstyle.cayenne.regression.RandomDomainBuilder.generateDataMap(RandomDomainBuilder.java:312)
    [java] at
    org.objectstyle.cayenne.regression.RandomDomainBuilder.generateSchema(RandomDomainBuilder.java:197)
    [java] at
    org.objectstyle.cayenne.regression.RandomDomainBuilder.generate(RandomDomainBuilder.java:129)
    [java] at org.objectstyle.cayenne.regression.Main.execute(Main.java:173)
    [java] at
    org.objectstyle.cayenne.regression.AntMain.main(AntMain.java:91)



    This archive was generated by hypermail 2.0.0 : Fri Feb 11 2005 - 21:11:42 EST