Class ObserverMethodOnIncorrectBeanTest

  • All Implemented Interfaces:
    org.testng.IHookable, org.testng.ITestNGListener

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class ObserverMethodOnIncorrectBeanTest
    extends AbstractTest
    Tests an observer method on something that is not a managed bean or a session bean.
    Author:
    David Allen, Martin Kouba
    • Constructor Detail

      • ObserverMethodOnIncorrectBeanTest

        public ObserverMethodOnIncorrectBeanTest()
    • Method Detail

      • createTestArchive

        @Deployment
        public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
      • testObserverMethodNotOnManagedOrSessionBeanFails

        @SpecAssertion(section="observer_methods",
                       id="ab")
        public void testObserverMethodNotOnManagedOrSessionBeanFails()