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

Richard Li <[email protected]>
Newsgroups gmane.linux.redhat.ccm.general
Message-ID <[email protected]>
One of our release criteria is to make sure all regression tests pass. 
This includes unit tests. There are some exceptions to this rule, but 
they're pretty rare and complicated and require agreement from a variety 
of folks.

For your purposes, I would perform an impact analysis of the specific 
test failures. If you have a significant number of test failures on a 
standard install, it's probably your test environment. If all of your 
tests pass except for a few, I'd look at the tests to determine whether 
or not it could portend of something more significant.

Richard

Kevin C. Flaherty wrote:

>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/
>>    
>>
>
>  
>



-- 
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.