[ 
https://issues.apache.org/jira/browse/LABS-340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bernd Fondermann updated LABS-340:
----------------------------------

    Priority: Blocker  (was: Trivial)
     Summary: testAllowBareFromEntityOnlyOnSingleBoundResource fails  (was: 
testAllowBareFromEntityOnlyOnSingleBoundResource does not handle the 
IllegalStateException)

This bug is specific to unit testing with a session, where stanzas are being 
sent.

When a handler gets tested, the handler sends out stanzas and the test keeps 
track of them, by looking them up and inspecting them. Handlers can send 
stanzas via the StanzaRelayBroker (to any receiver), by returning them as a 
handler's result to the calling session's client or by directly putting them on 
the wire of some active session using 
LocalDeliveryUtils.relayToResourceDirectly(). The test env is not currently set 
up to deal with more than one stanza send in the latter way. When the second 
stanza gets sent, the ISE is raised.

A proper solution would be to refactor TestSessionContext.write() to be able to 
receive (and inspect) more than one stanza.


> testAllowBareFromEntityOnlyOnSingleBoundResource fails
> ------------------------------------------------------
>
>                 Key: LABS-340
>                 URL: https://issues.apache.org/jira/browse/LABS-340
>             Project: Labs
>          Issue Type: Sub-task
>          Components: Vysper
>         Environment: java version "1.6.0_12"
> Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode)
>            Reporter: Michael Jakl
>            Priority: Blocker
>             Fix For: Current
>
>         Attachments: alternative_fix_for_illegalstateexception.patch
>
>
> The testAllowBareFromEntityOnlyOnSingleBoundResource Unit test failed with an 
> exception. The API seems to have changed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to