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

From: WWFalcon (wwfalco..ofthome.net)
Date: Thu Nov 21 2002 - 04:10:55 EST

  • Next message: Holger Hoffstätte: "Re: [Ask]how to run cayenne-1.0b1-dev JUnit test"


    i am a newbie in cayenne.i download src from cayenne CVS.
    But when i run a testcase(OneWayOneToManyTst.java) in Eclipse.it prompt an error as bellow:

      0 [main] INFO org.objectstyle.cayenne.unittest.CayenneTestResources - JDK 1.4 detected.
      41 [main] WARN org.objectstyle.cayenne.unittest.CayenneTestResources - No property for 'cayenne.test.connection' set. Good luck running unit tests ;-)
      51 [main] INFO org.objectstyle.cayenne.unittest.CayenneTestResources - No property 'cayenne.test.dir' set. Using default directory: 'testrun'
      361 [main] ERROR org.objectstyle.cayenne.unittest.CayenneTestResources - Can not create domain with map: test-resources/one-way-map.map.xml
      java.lang.NullPointerException
       at org.objectstyle.cayenne.unittest.CayenneTestResources.createCayenneStack(CayenneTestResources.java:222)
       at org.objectstyle.cayenne.unittest.OneWayMappingProject.<init>(OneWayMappingProject.java:91)
       at org.objectstyle.cayenne.unittest.OneWayMappingProject.init(OneWayMappingProject.java:79)
       at org.objectstyle.cayenne.unittest.OneWayMappingTestCase.<init>(OneWayMappingTestCase.java:73)
       at org.objectstyle.cayenne.OneWayOneToManyTst.<init>(OneWayOneToManyTst.java:82)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
       at junit.framework.TestSuite.createTest(TestSuite.java:135)
       at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
       at junit.framework.TestSuite.<init>(TestSuite.java:75)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.getTest(RemoteTestRunner.java:270)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:307)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:218)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:151)

    I dont know the reason.maybe the file "connection.properties" is not the right file?



    This archive was generated by hypermail 2.0.0 : Thu Nov 21 2002 - 04:11:44 EST