Class DecoratorDefinitionTest

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

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class DecoratorDefinitionTest
    extends AbstractTest
    Author:
    pmuir, Martin Kouba
    • Constructor Detail

      • DecoratorDefinitionTest

        public DecoratorDefinitionTest()
    • Method Detail

      • createTestArchive

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

        @SpecAssertion(section="decorator_bean",id="d") @SpecAssertion(section="decorator_annotation",id="a") @SpecAssertion(section="decorated_types",id="c") @SpecAssertion(section="decorator_resolution",id="aa") @SpecAssertion(section="decorator",id="a") @SpecAssertion(section="bean_discovery_steps",id="g")
        public void testDecoratorIsManagedBean()
      • testDecoratedTypes

        @SpecAssertion(section="decorator_bean",id="b") @SpecAssertion(section="decorator_bean",id="c") @SpecAssertion(section="decorator",id="b") @SpecAssertion(section="bm_decorator_resolution",id="a") @SpecAssertion(section="bm_decorator_resolution",id="b")
        public void testDecoratedTypes()
      • testDelegateInjectionPoint

        @SpecAssertion(section="delegate_attribute",id="a") @SpecAssertion(section="decorator",id="c")
        public void testDelegateInjectionPoint()
      • testDecoratorDoesNotImplementDelegateType

        @SpecAssertion(section="decorated_types",
                       id="b")
        public void testDecoratorDoesNotImplementDelegateType()
      • testDecoratorOrdering

        @SpecAssertion(section="enabled_decorators_bean_archive",id="b") @SpecAssertion(section="decorator_resolution",id="aa") @SpecAssertion(section="bm_decorator_resolution",id="a")
        public void testDecoratorOrdering()
      • testNonEnabledDecoratorNotResolved

        @SpecAssertion(section="enabled_decorators_bean_archive",
                       id="a")
        public void testNonEnabledDecoratorNotResolved()
      • testInstanceOfDecoratorForEachEnabled

        @SpecAssertion(section="decorator",
                       id="d")
        public void testInstanceOfDecoratorForEachEnabled()
      • testDuplicateBindingsOnResolveDecoratorsFails

        @SpecAssertion(section="bm_decorator_resolution",
                       id="c")
        public void testDuplicateBindingsOnResolveDecoratorsFails()
      • testNonBindingsOnResolveDecoratorsFails

        @SpecAssertion(section="bm_decorator_resolution",
                       id="d")
        public void testNonBindingsOnResolveDecoratorsFails()
      • testEmptyTypeSetOnResolveDecoratorsFails

        @SpecAssertion(section="bm_decorator_resolution",
                       id="e")
        public void testEmptyTypeSetOnResolveDecoratorsFails()
      • testAbstractDecoratorNotImplementingMethodOfDecoratedType

        @SpecAssertion(section="decorator_bean",id="d") @SpecAssertion(section="decorated_types",id="c") @SpecAssertion(section="decorated_types",id="ca")
        public void testAbstractDecoratorNotImplementingMethodOfDecoratedType​(BankAccount account)
        Test that if the decorator does not implement a method of the decorated type, the container will provide an implicit implementation that calls the method on the delegate.
        Parameters:
        account -