You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Jeremy Ford <ca...@hotmail.com> on 2004/07/20 19:43:00 UTC

[J2] TestInterceptorAdapter failing

Has anyone been having trouble with this test failing.  Here is the error:

Testcase: 
testThreadLocalDelegation(org.apache.jetspeed.components.TestInterceptorAdapter):	FAILED
expected:<3> but was:<4>
junit.framework.AssertionFailedError: expected:<3> but was:<4>
	at 
org.apache.jetspeed.components.TestInterceptorAdapter.testThreadLocalDelegation(TestInterceptorAdapter.java:138)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


As you can see, it was expecting three but received four.  I changed the 
test to expect four, but then it receives three.  I'm not sure what's going 
on.

Jeremy Ford
jford@apache.org

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: [J2] TestInterceptorAdapter failing

Posted by "Scott T. Weaver" <sc...@binary-designs.net>.
If we go with Spring we won't need InterceptorAdapter anyway ;)

Ate Douma wrote:

> I have been hit by the same problem many times. I did look into it a 
> bit a month or so back but didn't find the problem.
> Usually, I have it only after an allClean or fresh cvs checkout. After 
> running allBuild again the test then completes OK. Looks like some 
> kind of timing issue to me.
>
> Jeremy Ford wrote:
>
>> Has anyone been having trouble with this test failing.  Here is the 
>> error:
>>
>> Testcase: 
>> testThreadLocalDelegation(org.apache.jetspeed.components.TestInterceptorAdapter):    
>> FAILED
>> expected:<3> but was:<4>
>> junit.framework.AssertionFailedError: expected:<3> but was:<4>
>>     at 
>> org.apache.jetspeed.components.TestInterceptorAdapter.testThreadLocalDelegation(TestInterceptorAdapter.java:138) 
>>
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>>
>>     at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>>
>>
>>
>> As you can see, it was expecting three but received four.  I changed 
>> the test to expect four, but then it receives three.  I'm not sure 
>> what's going on.
>>
>> Jeremy Ford
>> jford@apache.org
>>
>> _________________________________________________________________
>> Don’t just search. Find. Check out the new MSN Search! 
>> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>


-- 
******************************************
*           Scott T. Weaver              *
*         <we...@apache.org>            *
*     <http://www.einnovation.com>       *
* -------------------------------------- *
*   Apache Jetspeed Enterprise Portal    *
*     Apache Pluto Portlet Container     *
*                                        *
* OpenEditPro, Website Content Mangement *
*     <http://www.openeditpro.com>       *
******************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: [J2] TestInterceptorAdapter failing

Posted by Ate Douma <at...@douma.nu>.
I have been hit by the same problem many times. I did look into it a bit a month 
or so back but didn't find the problem.
Usually, I have it only after an allClean or fresh cvs checkout. After running 
allBuild again the test then completes OK. Looks like some kind of timing issue 
to me.

Jeremy Ford wrote:

> Has anyone been having trouble with this test failing.  Here is the error:
> 
> Testcase: 
> testThreadLocalDelegation(org.apache.jetspeed.components.TestInterceptorAdapter):    
> FAILED
> expected:<3> but was:<4>
> junit.framework.AssertionFailedError: expected:<3> but was:<4>
>     at 
> org.apache.jetspeed.components.TestInterceptorAdapter.testThreadLocalDelegation(TestInterceptorAdapter.java:138) 
> 
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
> 
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
> 
> 
> 
> As you can see, it was expecting three but received four.  I changed the 
> test to expect four, but then it receives three.  I'm not sure what's 
> going on.
> 
> Jeremy Ford
> jford@apache.org
> 
> _________________________________________________________________
> Don’t just search. Find. Check out the new MSN Search! 
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org