org.jboss.jsr299.tck.tests.event
Class EventTest

java.lang.Object
  extended by org.jboss.testharness.AbstractTest
      extended by org.jboss.jsr299.tck.AbstractJSR299Test
          extended by org.jboss.jsr299.tck.tests.event.EventTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

@Artifact
@BeansXml(value="beans.xml")
@SpecVersion(spec="cdi",
             version="20091101")
public class EventTest
extends AbstractJSR299Test

Event bus tests

Author:
Nicklas Karlsson, David Allen

Constructor Summary
EventTest()
           
 
Method Summary
<T> void
testEventObjectContainsTypeVariablesWhenResolvingFails()
           
 void testGetTransactionPhaseOnObserverMethod()
           
 void testInstanceOfBeanForEveryEnabledObserverMethod()
           
 void testNonStaticObserverMethodIndirectlyInherited()
           
 void testNonStaticObserverMethodInherited()
          By default, Java implementation reuse is assumed.
 void testObserverCalledOnMostSpecializedInstance()
           
 void testObserverMethodNotifiedWhenBindingsMatch()
           
 void testObserverMethodReceivesInjectionsOnNonObservesParameters()
           
 void testStaticObserverMethodInvoked()
          FIXME the spec doesn't follow this exactly because technically it isn't supposed to use the bean resolution algorithm to obtain the instance, which it does.
 
Methods inherited from class org.jboss.jsr299.tck.AbstractJSR299Test
annotationSetMatches, deserialize, destroyContext, getBeans, getBeans, getCurrentConfiguration, getCurrentManager, getInstanceByName, getInstanceByType, getInstanceByType, getUniqueBean, getUniqueBean, handleDeploymentFailure, rawTypeSetMatches, serialize, setContextActive, setContextInactive, typeSetMatches
 
Methods inherited from class org.jboss.testharness.AbstractTest
afterClass, afterMethod, afterSuite, beforeClass, beforeMethod, beforeSuite, getContextPath, isInContainer, isThrowablePresent, postCreate, run, setInContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventTest

public EventTest()
Method Detail

testObserverMethodReceivesInjectionsOnNonObservesParameters

@SpecAssertions(value={@SpecAssertion(section="10.4.2",id="i"),@SpecAssertion(section="5.5.6",id="c"),@SpecAssertion(section="2.3.5",id="ca"),@SpecAssertion(section="3.10",id="a")})
public void testObserverMethodReceivesInjectionsOnNonObservesParameters()

testStaticObserverMethodInvoked

@SpecAssertions(value={@SpecAssertion(section="10.4",id="c"),@SpecAssertion(section="5.5.6",id="a")})
public void testStaticObserverMethodInvoked()
FIXME the spec doesn't follow this exactly because technically it isn't supposed to use the bean resolution algorithm to obtain the instance, which it does.


testObserverCalledOnMostSpecializedInstance

@SpecAssertions(value={@SpecAssertion(section="4.3",id="cb"),@SpecAssertion(section="5.5.6",id="baa")})
public void testObserverCalledOnMostSpecializedInstance()

testEventObjectContainsTypeVariablesWhenResolvingFails

@SpecAssertion(section="11.3.10",
               id="c")
public <T> void testEventObjectContainsTypeVariablesWhenResolvingFails()

testObserverMethodNotifiedWhenBindingsMatch

@SpecAssertions(value={@SpecAssertion(section="10.2.3",id="b"),@SpecAssertion(section="10.2.3",id="c")})
public void testObserverMethodNotifiedWhenBindingsMatch()

testNonStaticObserverMethodInherited

@SpecAssertion(section="4.2",
               id="dc")
public void testNonStaticObserverMethodInherited()
By default, Java implementation reuse is assumed. In this case, the producer, disposal and observer methods of the first bean are not inherited by the second bean.

Throws:
Exception

testNonStaticObserverMethodIndirectlyInherited

@SpecAssertions(value={@SpecAssertion(section="4.2",id="di"),@SpecAssertion(section="11.1.3",id="f")})
public void testNonStaticObserverMethodIndirectlyInherited()

testGetTransactionPhaseOnObserverMethod

@SpecAssertion(section="11.1.3",
               id="e")
public void testGetTransactionPhaseOnObserverMethod()

testInstanceOfBeanForEveryEnabledObserverMethod

@SpecAssertion(section="11.1.3",
               id="ga")
public void testInstanceOfBeanForEveryEnabledObserverMethod()


Copyright © 2008-2012 Seam Framework. All Rights Reserved.