Re: how can I solve db-related problem when I run DataQueryImplTest.java using eclipse?

"Kevin C. Flaherty" <[email protected]>
Newsgroups gmane.linux.redhat.ccm.general
Message-ID <20040324120300.C1040@meilihua>
in a proper environment, do all of the test pass? ie, shall we not feel happy till all suites pass doing 'ant runtest-project' on 5.0.3?

<kevin>

Here's what Dennis Gregorovic ([email protected]) had to say:

> It could be a number of things, but the first make sure that the
> test.initscript property in your ant.properties is set correctly.
> 
> -- Dennis
> 
> On Tue, 2004-03-23 at 21:22, Mary Wang wrote:
> > 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兆网络存储空间
> > 
> > ______________________________________________________________________
> > -- 
> > Redhat-ccm-list mailing list
> > [email protected]
> > https://www.redhat.com/mailman/listinfo/redhat-ccm-list
> > Archives: https://www.redhat.com/pipermail/redhat-ccm-list/
> 
> 
> -- 
> Redhat-ccm-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/redhat-ccm-list
> Archives: https://www.redhat.com/pipermail/redhat-ccm-list/

-- 
Kevin C. Flaherty			email:  [email protected]
Roadstead Consulting		www:	www.roadstead.org
Badstuestraede 3			work:   +45 26 29 90 94
1209 Copenhagen K			IM:	roadstead_rap (YahooIM)
Denmark					


-- 
Redhat-ccm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-ccm-list
Archives: https://www.redhat.com/pipermail/redhat-ccm-list/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.