<DIV>Hi,</DIV>
<DIV>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. </DIV>
<DIV> </DIV>
<DIV>My os is windows 2000,database is Oracle9.0.1,my WAF version is 5.0.3.</DIV>
<DIV> </DIV>
<DIV>I can successfully run ModelTest.java.But when I run DataQueryImplTest.java ,the test failed.And the Failure Trace is:</DIV>
<DIV>java.lang.NullPointerException<BR> at com.arsdigita.db.ConnectionManager.getConnection(ConnectionManager.java:195)<BR> at com.arsdigita.persistence.TransactionContext.getConnection(TransactionContext.java:96)<BR> at com.arsdigita.persistence.DataStore.getConnection(DataStore.java:104)<BR> at com.arsdigita.persistence.DataStore.fireOperation(DataStore.java:309)<BR> at com.arsdigita.persistence.DataStore.fireOperation(DataStore.java:179)<BR> at com.arsdigita.persistence.DataQueryImpl.executeQuery(DataQueryImpl.java:902)<BR> at com.arsdigita.persistence.DataQueryImpl.checkResultSet(DataQueryImpl.java:879)<BR> at com.arsdigita.persistence.DataQueryImpl.next(DataQueryImpl.java:416)<BR> at com.arsdigita.persistence.DataQueryImplTest.testSetOrder(DataQueryImplTest.java:84)<BR> at java.lang.reflect.Method.invoke(Native Method)<BR> at junit.framework.TestCase.runTest(TestCase.java:154)<BR> at
 junit.framework.TestCase.runBare(TestCase.java:127)<BR> at com.arsdigita.persistence.PersistenceTestCase.runBare(PersistenceTestCase.java:70)<BR> at junit.framework.TestResult$1.protect(TestResult.java:106)<BR> at junit.framework.TestResult.runProtected(TestResult.java:124)<BR> at junit.framework.TestResult.run(TestResult.java:109)<BR> at junit.framework.TestCase.run(TestCase.java:118)<BR> at junit.framework.TestSuite.runTest(TestSuite.java:208)<BR> at junit.framework.TestSuite.run(TestSuite.java:203)<BR> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)<BR> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)<BR> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)</DIV>
<DIV> </DIV>
<DIV>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?</DIV>
<DIV> </DIV>
<DIV>Thank you!</DIV>
<DIV> </DIV>
<DIV>Wanghu</DIV>
<DIV> </DIV><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.mail.yahoo.com" target=blank>完全免费的雅虎电邮,马上注册获赠额外60兆网络存储空间</a>