[
https://jira.jboss.org/jira/browse/CDITCK-20?page=com.atlassian.jira.plug...
]
Jozef Hartinger commented on CDITCK-20:
---------------------------------------
Pete,
I am not sure I understand perfectly. I suppose you want to test that an event like this
event.select(BreakInEvent.class).fire(new CriticalBreakInEvent()) causes
breakInOccurred(@Observes @Any BreakInEvent event)
to be invoked while it does not cause
criticalBreakInOccured(@Observes @Any CriticalBreakInEvent event)
to be invoked.
I implemeted this by extending an existing test, but I am waiting for confirmation.
Also, I am not sure if the spec describes this correctly, since it says "An event is
delivered to an observer method if the event object is assignable to the observed event
type, taking type parameters into consideration." (Not the "event object is
assignable" instead of "specified type is assignable")
Write a test that actually checks that the subtype is used for
Event.select(), and not the type of the payload to the event
---------------------------------------------------------------------------------------------------------------------------
Key: CDITCK-20
URL:
https://jira.jboss.org/jira/browse/CDITCK-20
Project: CDI TCK
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Tests
Reporter: Pete Muir
Assignee: Jozef Hartinger
Fix For: 1.0.0.GA
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira