Re: [Ask]how to run cayenne-1.0b1-dev JUnit test

From: Craig Miskell (cmiskel..lbatross.co.nz)
Date: Sun Nov 24 2002 - 14:05:19 EST

  • Next message: xuzhou: "Re: Question about flatten relationship"

    That's odd, especially if most other tests run correctly. All I can
    suggest is checking to make sure you've got the latest from cvs. Then
    do a clean ('ant clean' from the command line), then try running the
    tests again.

    Craig
    On Fri, 2002-11-22 at 14:37, WWFalcon wrote:
    > i do as the archive tell me,but it failed.
    > [java] [junit] TEST org.objectstyle.cayenne.gen.ClassGeneratorTst FAI
    > D
    > [java] [junit] TEST org.objectstyle.cayenne.tools.CayenneGeneratorTst
    > AILED
    >
    > [java] unit-test-report:
    > [java] [junitreport] Using Xalan version: Xalan Java 2.2.D11
    > [java] [junitreport] Transform time: 10995ms
    >
    > [java] BUILD FAILED
    > [java] file:F:/cayenne_cvs/cayenne/build-tests.xml:126: Cayenne tests fai
    > d, see files in build/tests/out/example1 for details
    >
    > [java] Total time: 46 seconds
    > i check the xml file "TEST-org.objectstyle.cayenne.gen.ClassGeneratorTst.xml",it has some error as bellow:
    >
    > <error message="Can&apos;t initialize VTL" type="org.objectstyle.cayenne.CayenneRuntimeException">org.objectstyle.cayenne.CayenneRuntimeException: Can&apos;t initialize VTL
    > at org.objectstyle.cayenne.gen.ClassGenerator.bootstrapVelocity(ClassGenerator.java:133)
    > at org.objectstyle.cayenne.gen.ClassGenerator.&lt;init&gt;(ClassGenerator.java:155)
    > at org.objectstyle.cayenne.gen.ClassGeneratorTst.setUp(ClassGeneratorTst.java:78)
    > Caused by: java.lang.Exception: Problem initializing template loader: org.objectstyle.cayenne.gen.AbsFileResourceLoader
    > Error is: java.lang.ClassNotFoundException: org.objectstyle.cayenne.gen.AbsFileResourceLoader
    > at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    > at java.security.AccessController.doPrivileged(Native Method)
    > at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    > at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    > at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    > at java.lang.Class.forName0(Native Method)
    > at java.lang.Class.forName(Class.java:140)
    > why can not find the class "org.objectstyle.cayenne.gen.AbsFileResourceLoader"?
    >
    >
    > ----- Original Message -----
    > From: "Holger Hoffstätte" <holge..izards.de>
    > To: "cayenne-devel" <cayenne-deve..bjectstyle.org>
    > Sent: Thursday, November 21, 2002 10:08 PM
    > Subject: Re: [Ask]how to run cayenne-1.0b1-dev JUnit test
    >
    >
    > >
    > > Hi,
    > >
    > > check out this message and follow-ups in the archive:
    > > http://objectstyle.org/cayenne/lists/cayenne-devel/2002/11/0019.html
    > >
    > > connection.properties can be found as a template in src/tests/
    > > The unit tests were recently rewritten and are still not fully automated
    > > and completely runnable from within eclipse, but they do work via ant from
    > > the commandline.
    > >
    > > Holger
    > >



    This archive was generated by hypermail 2.0.0 : Sun Nov 24 2002 - 14:04:40 EST