[webbeans-issues] [JBoss JIRA] Created: (WBTCK-31) EventTest - Bugs
by Gurkan Erdogdu (JIRA)
EventTest - Bugs
----------------
Key: WBTCK-31
URL: https://jira.jboss.org/jira/browse/WBTCK-31
Project: JSR-299 TCK
Issue Type: Bug
Reporter: Gurkan Erdogdu
EventTest class
------------------------------
1* public void testEventObjectContainsTypeVariablesWhenResolvingFails()
This method checks the IllegalArgumentException, but not defines ExpectedException.
Coverage : 7.7.b ) If the type of the event object passed to resolveObservers() contains type variables, an IllegalArgumentException is thrown
2* Following methods are failed because there are more than one implicit Event component exist.
testImplicitEventBeanHasDependentScope
testImplicitEventBeanHasStandardDeploymentType
testImplicitEventBeanHasNoName
testImplicitEventBeanProvidedByContainer
3* How this method is tested ?
testAsynchronousObserverIsAsynchronous. When the asynhronous call is done?
--
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
15 years, 8 months
[webbeans-issues] [JBoss JIRA] Created: (WBTCK-27) TCK-Event Tests
by Gurkan Erdogdu (JIRA)
TCK-Event Tests
---------------
Key: WBTCK-27
URL: https://jira.jboss.org/jira/browse/WBTCK-27
Project: JSR-299 TCK
Issue Type: Bug
Reporter: Gurkan Erdogdu
Below test in the Event Test, this fails. Because, there are multiple implicit event beans are registered with the manager with the same types.
Because some of the test classes have same event firing fields, namely @Fires Event<String>. So the resolution finds more than one bean throwing
the AmbigiousDependencyException.
@Test(groups = { "events" })
@SpecAssertion(section = "7.6", id = "p")
public void testImplicitEventBeanHasDependentScope() throws Exception
{
new RunInDependentContext()
{
> @Override
> protected void execute() throws Exception
> {
> // Retrieve the implicit event bean from the manager only
> // by its API type (uses BlueFacedParrotFinch)
> Set<?> eventBeans = getCurrentManager().resolveByType(Event.class, new FiresBinding());
> assert eventBeans.size() == 1;
> Bean<?> eventBean = (Bean<?>) eventBeans.iterator().next();
> assert eventBean.getScopeType().equals(Dependent.class);
> }
> }.run();
> }
--
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
15 years, 8 months