You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Stephen McConnell <mc...@apache.org> on 2004/07/05 20:55:32 UTC

RequestProcessorTest - failure

Everything is working fine except for the last test case - I'm getting 
an error MerlinRequestProcessorTest.  Any ideas?

Steve.

---------------------------------------------------------------------


Testsuite: org.apache.eve.processor.MerlinRequestProcessorTest
Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 16.265 sec

Testcase: testAdd(org.apache.eve.processor.MerlinRequestProcessorTest): 
FAILED
null
junit.framework.AssertionFailedError
	at 
org.apache.eve.processor.MerlinRequestProcessorTest.testAdd(MerlinRequestProcessorTest.java:156)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at 
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
	at 
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:99)
	at com.werken.werkz.Goal.fire(Goal.java:639)
	at com.werken.werkz.Goal.attain(Goal.java:575)
	at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
	at com.werken.werkz.Goal.attain(Goal.java:573)
	at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
	at com.werken.werkz.Goal.attain(Goal.java:573)

-- 

|---------------------------------------|
| Magic by Merlin                       |
| Production by Avalon                  |
|                                       |
| http://avalon.apache.org              |
|---------------------------------------|


Re: RequestProcessorTest - failure

Posted by Stephen McConnell <mc...@apache.org>.
Alex Karasulu wrote:

> Do an update.  I just committed revision 22602 with the fix.  Run the
> tests in the consolidation branch and let me know if all goes well for
> ya.
> 

That did the trick!

BUILD SUCCESSFUL
Total time: 6 minutes 26 seconds
Finished at: Mon Jul 05 21:41:07 CEST 2004

Steve.

-- 

|---------------------------------------|
| Magic by Merlin                       |
| Production by Avalon                  |
|                                       |
| http://avalon.apache.org              |
|---------------------------------------|

Re: RequestProcessorTest - failure

Posted by Alex Karasulu <ao...@bellsouth.net>.
Do an update.  I just committed revision 22602 with the fix.  Run the
tests in the consolidation branch and let me know if all goes well for
ya.

Alex

On Mon, 2004-07-05 at 14:55, Stephen McConnell wrote:
> Everything is working fine except for the last test case - I'm getting 
> an error MerlinRequestProcessorTest.  Any ideas?
> 
> Steve.
> 
> ---------------------------------------------------------------------
> 
> 
> Testsuite: org.apache.eve.processor.MerlinRequestProcessorTest
> Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 16.265 sec
> 
> Testcase: testAdd(org.apache.eve.processor.MerlinRequestProcessorTest): 
> FAILED
> null
> junit.framework.AssertionFailedError
> 	at 
> org.apache.eve.processor.MerlinRequestProcessorTest.testAdd(MerlinRequestProcessorTest.java:156)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232)
> 	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
> 	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
> 	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
> 	at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
> 	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
> 	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
> 	at 
> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
> 	at 
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:99)
> 	at com.werken.werkz.Goal.fire(Goal.java:639)
> 	at com.werken.werkz.Goal.attain(Goal.java:575)
> 	at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
> 	at com.werken.werkz.Goal.attain(Goal.java:573)
> 	at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
> 	at com.werken.werkz.Goal.attain(Goal.java:573)


Re: RequestProcessorTest - failure

Posted by Alex Karasulu <ao...@bellsouth.net>.
On Mon, 2004-07-05 at 14:55, Stephen McConnell wrote:
> Everything is working fine except for the last test case - I'm getting 
> an error MerlinRequestProcessorTest.  Any ideas?

Steve I think I know what's going on.  There is a thread sleep that is
at fault and it explains why you get the failure and I do not.  The
sleep waits for an event to be routed and processed by the
RequestProccessor component.  I need to use the tearDown feature of
Merlin Unit before I assert a few things.  Gimme 1 sec and you should
have a fix.

Alex

> Steve.
> 
> ---------------------------------------------------------------------
> 
> 
> Testsuite: org.apache.eve.processor.MerlinRequestProcessorTest
> Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 16.265 sec
> 
> Testcase: testAdd(org.apache.eve.processor.MerlinRequestProcessorTest): 
> FAILED
> null
> junit.framework.AssertionFailedError
> 	at 
> org.apache.eve.processor.MerlinRequestProcessorTest.testAdd(MerlinRequestProcessorTest.java:156)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232)
> 	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
> 	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
> 	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
> 	at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
> 	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
> 	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
> 	at 
> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
> 	at 
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:99)
> 	at com.werken.werkz.Goal.fire(Goal.java:639)
> 	at com.werken.werkz.Goal.attain(Goal.java:575)
> 	at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
> 	at com.werken.werkz.Goal.attain(Goal.java:573)
> 	at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
> 	at com.werken.werkz.Goal.attain(Goal.java:573)