[redhat-ccm-list] how can I solve db-related problem when I run DataQueryImplTest.java using eclipse?
Mary Wang
wangaojun at yahoo.com.cn
Wed Mar 24 02:22:48 UTC 2004
Hi,
I am a WAF newbie and I noticed that there are many JUNIT test code which can be used the test the WAF java class,so I want to run them using eclipse.
My os is windows 2000,database is Oracle9.0.1,my WAF version is 5.0.3.
I can successfully run ModelTest.java.But when I run DataQueryImplTest.java ,the test failed.And the Failure Trace is:
java.lang.NullPointerException
at com.arsdigita.db.ConnectionManager.getConnection(ConnectionManager.java:195)
at com.arsdigita.persistence.TransactionContext.getConnection(TransactionContext.java:96)
at com.arsdigita.persistence.DataStore.getConnection(DataStore.java:104)
at com.arsdigita.persistence.DataStore.fireOperation(DataStore.java:309)
at com.arsdigita.persistence.DataStore.fireOperation(DataStore.java:179)
at com.arsdigita.persistence.DataQueryImpl.executeQuery(DataQueryImpl.java:902)
at com.arsdigita.persistence.DataQueryImpl.checkResultSet(DataQueryImpl.java:879)
at com.arsdigita.persistence.DataQueryImpl.next(DataQueryImpl.java:416)
at com.arsdigita.persistence.DataQueryImplTest.testSetOrder(DataQueryImplTest.java:84)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at com.arsdigita.persistence.PersistenceTestCase.runBare(PersistenceTestCase.java:70)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)
I know that I should solve some db-related problems,but where and how should I modify some source code to make the test pass?
Thank you!
Wanghu
---------------------------------
Do You Yahoo!?
完全免费的雅虎电邮,马上注册获赠额外60兆网络存储空间
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/redhat-ccm-list/attachments/20040324/06e22817/attachment.htm>
More information about the Redhat-ccm-list
mailing list