Package org.jboss.cdi.tck
Class AbstractTest
- java.lang.Object
-
- org.jboss.arquillian.testng.Arquillian
-
- org.jboss.cdi.tck.AbstractTest
-
- All Implemented Interfaces:
org.testng.IHookable,org.testng.ITestNGListener
- Direct Known Subclasses:
AbstractDecoratorTest,AbstractInvalidExtensionParamTest,AbstractObserverNotificationTest,AddDefinitionErrorTest,AddDefinitionErrorTest,AddDefinitionErrorTest,AddDefinitionErrorTest,AddDeploymentProblemTest,AddingNormalScopeTest,AddingPassivatingScopeTest,AfterBeanDiscoveryObserverExecutionFailureTest,AfterBeanDiscoveryTest,AfterDeploymentValidationObserverExecutionFailureTest,AfterTypeDiscoveryMassOperationsTest,AfterTypeDiscoveryTest,AlterableContextTest,AlterableContextTest,AlternativeAvailabilityTest,AlternativeInLibraryWithExtensionTest,AlternativeMetadataInterceptorInjectionTargetTest,AlternativeMetadataInterceptorTest,AlternativeMetadataTest,AlternativeMetaDataTest,AmbiguousDependencyResolutionTest,AmbiguousDependencyTest,AmbiguousELNamesTest,AmbiguousELNamesTest,AmbiguousInjectableReferenceTest,AnnotatedTypeAnnotationsTest,AnnotatedTypeConfiguratorInBBDTest,AnnotatedTypeConfiguratorTest,AnyInjectionTest,ApplicationContextLifecycleEventObserverOrderingTest,ApplicationInitializationLifecycleTest,AroundConstructInterceptorReturnValueTest,AroundConstructLifeCycleTest,AroundConstructOrderTest,AroundConstructTest,AroundConstructTest,AroundInvokeAccessInterceptorTest,AroundInvokeInterceptorTest,AroundInvokeOrderTest,ArrayTest,AssignabilityOfRawAndParameterizedTypesTest,BasicConfiguratorsTest,BeanAttributesConfiguratorTest,BeanByTypeTest,BeanConfiguratorAlternativePriorityTest,BeanConfiguratorTest,BeanConstructorWithParametersTest,BeanContainerTest,BeanDefinitionTest,BeanDiscoveryTest,BeanManagerTest,BeanTypeParamConstructorTest,BeanTypeParamDisposerTest,BeanTypeParamFieldTest,BeanTypeParamInitializerTest,BeanTypeParamProducerTest,BeanTypesWithIllegalTypeTest,BeforeBeanDiscoveryTest,BeforeBeanDiscoveryThrowsExceptionTest,BindingAnnotationWithMemberTest,BindingAnnotationWithMemberTest,BrokenInterceptedInstanceTest,BuildCompatibleExtensionSmokeTest,BuiltinBeanPassivationDependencyTest,BuiltinDecoratorInjectionTest,BuiltinInstanceDependentObjectTest,BuiltinInstanceTest,BuiltinInterceptorInjectionTest,BuiltinMetadataBeanTest,BuiltInQualifierDefinitionTest,ChangeBeanQualifierTest,ChangeInjectionPointTest,ChangeObserverQualifierTest,CheckedExceptionWrappedTest,ChecksEventTypeWhenResolvingTest,CheckTypeParametersWhenResolvingObserversTest,CircularDependencyTest,ClassIsNotAlternativeTest,ClassIsNotAlternativeTest,ClientProxyTest,ComplexEventDecoratorTest,ConditionalObserverTest,ConfiguratorAndSetMethodTest,ConflictingPrioritiesFromSingleStereotypeTest,ConflictingPriorityStereotypesTest,ConstructorHasAsyncObservesParameterTest,ConstructorHasDisposesParameterTest,ConstructorHasObservesParameterTest,ConstructorInterceptionTest,ContextDestroysBeansTest,ContextTest,CreateBeanAttributesTest,CreateInjectionPointTest,CustomBeanImplementationTest,CustomBeanWithInterceptorTest,CustomDecoratorMatchingBeanWithFinalClassTest,CustomDecoratorTest,CustomDecoratorWithNoDelegateInjectionPointTest,CustomDecoratorWithTooManyDelegateInjectionPointsTest,CustomInterceptorBindingTest,CustomInterceptorInvocationTest,CustomInterceptorRegistrationTest,CustomInterceptorTest,CustomObserverMethodWithoutNotifyMethodTest,CustomPassivatingScopeCalledWithSerializableParametersTest,CustomQualifierTest,CustomStereotypeTest,DecoratedBeanConstructorInjectionTest,DecoratedBeanFieldInjectionTest,DecoratedBeanInitializerInjectionTest,DecoratorAndInterceptorTest,DecoratorDefinitionTest,DecoratoredBeanProxyTest,DecoratoredBeanTypeParamConstructorTest,DecoratoredBeanTypeParamFieldTest,DecoratoredBeanTypeParamInitializerTest,DecoratorInvocationTest,DecoratorInvocationTest,DecoratorInvocationTest,DecoratorListedTwiceInBeansXmlTest,DecoratorNotAppliedToResultOfProducerTest,DecoratorNotInjectedTest,DecoratorProcessBeanAttributesTest,DecoratorResolutionTest,DecoratorTypeParamConstructorTest,DecoratorTypeParamFieldTest,DecoratorTypeParamInitializerTest,DecoratorWithAsyncObserverMethodTest,DecoratorWithInvalidAbstractMethodTest,DecoratorWithNoDecoratedTypes1Test,DecoratorWithNoDecoratedTypes2Test,DecoratorWithNoDecoratedTypes3Test,DecoratorWithNonPassivatingInjectedFieldTest,DecoratorWithNonPassivationCapableDependenciesTest,DecoratorWithObserverMethodTest,DefaultNamedTest,DelegateFieldInjectionPointTest,DelegateInjectionPointTest,DelegateInjectionPointTest,DelegateTypeImplementsParameterizedDecoratedTypeTest,DependentBeanFinalMethodInterceptorTest,DependentContextTest,DependentContextTest,DependentIsConditionalObserverTest,DependentTransientReferenceDestroyedTest,DependentWithPublicFieldTest,DeploymentFailureTest,DeploymentTest,DestroyedInstanceReturnedByGetTest,DestroyedInstanceReturnedByGetTest,DestroyForSameCreationalContext2Test,DestroyForSameCreationalContextTest,DestroyForSameCreationalContextTest,DestroyingDependentInstanceTest,DestroyingNormalScopedInstanceTest,DestroyingNormalScopedInstanceTest,DifferentTypeParametersTest,DisabledBeanNotAvailableForInjectionTest,DisposalMethodDefinitionTest,DisposedParameterPositionTest,DisposerInjectionPointMetadataTest,DisposerMethodInheritanceTest,DisposerMethodOnDecoratorTest,DisposerMethodOnInterceptorTest,DisposerMethodParameterInjectionValidationTest,DisposerMethodParameterInjectionValidationTest,DisposesMethodCalledOnceTest,DuplicateBindingTypesWhenResolvingTest,DuplicitNameTest,DynamicInjectionPointTest,DynamicLookupTest,EmptyBeansXmlDiscoveryTest,EnabledDecoratorNotADecoratorTest,EventBindingTypesTest,EventMetadataInjectionPointTest,EventMetadataTest,EventObserverOrderingTest,EventObserverOrderingTest,EventTest,EventTypesTest,ExceptionInOrderedObserversAbortsProcessingTest,ExceptionTest,ExcludeFiltersTest,ExpandedNamePrefix2Test,ExpandedNamePrefixTest,ExtensionLifecycleTest,ExtensionObserverOrderingTest,ExtensionsCommunicationTest,FinalBeanClassTest,FinalBeanMethodTest,FinalClassClassLevelInterceptorTest,FinalClassTest,FinalClassWithInheritedClassLevelInterceptorTest,FinalClassWithInheritedStereotypeInterceptorTest,FinalMethodWithInheritedClassLevelInterceptorTest,FinalMethodWithInheritedStereotypeInterceptorTest,FireAsyncWithCustomExecutorTest,FireContainerLifecycleEventTest,FireEventTest,FireSyncEventTest,GenericInitializerMethodTest,GenericManagedBeanTest,GetAnnotatedTypesTest,GetFromContextualTest,GetFromContextualTest,GetOnInactiveContextTest,GetOnInactiveContextTest,GetWithNoCreationalContextTest,GetWithNoCreationalContextTest,IgnoreFinalMethodsTest,ImplicitEventTest,IncompatibleStereotypesTest,InconsistentSpecializationTest,IndirectOverrideTest,InitializerMethodAnnotatedProducesTest,InitializerMethodTest,InitializerUnallowedDefinitionTest,InjectableReferenceTest,InjectAnnotatedProducerFieldTest,InjectedFieldAnnotatedWithProducesTest,InjectionPointConfiguratorTest,InjectionPointOverridingTest,InjectionPointTest,InjectionPointTest,InjectionTargetDefinitionErrorTest,InjectionTargetFactoryConfigureTest,InjectionVisibilityTest,InspectAnnotatedSubtypesTest,InstanceHandleTest,InterceptedBeanConstructorInjectionTest,InterceptedBeanFieldInjectionTest,InterceptedBeanInitializerInjectionTest,InterceptedBeanProxyTest,InterceptedBeanTypeParamConstructorTest,InterceptedBeanTypeParamFieldTest,InterceptedBeanTypeParamInitializerTest,InterceptionFactoryTest,InterceptorAnnotationExtensionTest,InterceptorBindingEquivalenceTest,InterceptorBindingInheritanceTest,InterceptorBindingOverridingTest,InterceptorBindingResolutionTest,InterceptorBindingTypeWithMemberTest,InterceptorBindingTypeWithMemberTest,InterceptorCalledBeforeDecoratorTest,InterceptorCanNotBeDecoratorTest,InterceptorConflictingEnablementTest,InterceptorDefinitionTest,InterceptorInvocationTest,InterceptorLifeCycleTest,InterceptorNotListedInBeansXmlNotEnabledTest,InterceptorNotResolvedInterModuleTest,InterceptorNotResolvedTest,InterceptorOrderTest,InterceptorProcessBeanAttributesTest,InterceptorTypeParamConstructorTest,InterceptorTypeParamFieldTest,InterceptorTypeParamInitializerTest,InterceptorWithAsyncObserverMethodTest,InterceptorWithNonPassivationCapableDependenciesTest,InterceptorWithObserverMethodTest,InvalidEventMetadataInjectionPointTest,InvalidInterceptionFactoryInjectionPointTest,InvalidQualifierTest,InvalidScopeTest,InvalidStereotypeInterceptorBindingAnnotationsTest,InvalidStereotypeTest,InvalidTransitiveInterceptorBindingAnnotationsTest,InvalidTypesTest,InvocationContextTest,LegalRequiredTypeTest,LifecycleCallbackInterceptorExceptionTest,LifecycleCallbackInterceptorTest,LifecycleCallbackInterceptorTest,LifecycleEventOrderingTest,LifecycleInterceptorDefinitionTest,LifecycleInterceptorOrderTest,ManagedBeanTypesTest,ManagedBeanWithIllegalDependencyTest,ManagedBeanWithIllegalDependencyTest,ManagedBeanWithNonPassivatingDecoratorTest,ManagedBeanWithNonSerializableInterceptorClassTest,ManagerTest,MemberLevelInheritanceTest,MethodLevelInterceptorTest,MixedObserversTest,ModifyingProducerViaConfigureAndSetTest,MultipleDelegateInjectionPointsTest,MultipleDisposeParametersDefinitionTest,MultipleDisposerMethodsForProducerMethodTest,MultipleExceptionsInObserversNotificationTest,MultipleInterceptorBindingsTest,NamedAtInjectionPointTest,NameDefinitionTest,NamedNonFieldInjectionPointTest,NamedNonFieldInjectionPointTest,NamedNonFieldInjectionPointTest,NamePrefixTest,NoAnnotationWithSpecifiedNameTest,NoClassWithSpecifiedNameTest,NoDelegateInjectionPointsTest,NonBindingTypePassedToFireTest,NonBindingTypesWhenResolvingTest,NonDecoratorWithDecoratesTest,NonDependentDecoratorTest,NonDependentInterceptorTest,NonDependentWithPublicStaticFieldTest,NonEmptyNamedTest,NonExistantClassInBeansXmlTest,NonExistantDecoratorClassInBeansXmlTest,NonInterceptorClassInBeansXmlTest,NonPassivatingConstructorParamTest,NonPassivatingInitParamTest,NonPassivatingInjectedFieldTest,NonPassivationCapableProducerFieldTest,NonPassivationCapableProducerMethodTest,NonPassivationManagedBeanHasPassivatingScopeTest,NonPrivateNonStaticSuperclassMethodTest,NormalContextTest,NormalScopedBeanFinalClassInterceptorTest,NormalScopedBeanFinalMethodInterceptorTest,NormalScopedBeanWithInjectionPoint,NotAllDecoratedTypesImplementedTest,ObserverExceptionAbortsProcessingTest,ObserverExceptionRethrownTest,ObserverInheritanceTest,ObserverMethodAnnotatedDisposesTest,ObserverMethodAnnotatedProducesTest,ObserverMethodConfiguratorTest,ObserverMethodOnIncorrectBeanTest,ObserverMethodParameterAnnotatedAsSyncAndAsyncTest,ObserverMethodParameterInjectionValidationTest,ObserverMethodParameterInjectionValidationTest,ObserverMethodTest,ObserverMethodWithObservesAndObservesAsyncParametersTest,ObserverMethodWithoutNotifyMethodTest,ObserverMethodWithParametertizedTypeTest,ObserverMethodWithTwoEventParametersTest,ObserverNotificationTest,ObserverParameterUnallowedDefinitionTest,OverridenLifecycleCallbackInterceptorTest,OverridenLifecycleCallbackInterceptorTest,PackagePrivateFinalMethodNotProxyableTest,ParameterAnnotatedAsyncObservesTest,ParameterAnnotatedAsyncObservesTest,ParameterAnnotatedDisposesTest,ParameterAnnotatedDisposesTest,ParameterAnnotatedObservesTest,ParameterAnnotatedObservesTest,ParameterizedEventTest,ParameterizedReturnTypeWithTypeVariableTest,ParameterizedTypesInjectionRawAmbiguousTest,ParameterizedTypesInjectionToParameterizedWithActualTypeTest,ParameterizedTypesInjectionToParameterizedWithTypeVariableTest,ParameterizedTypesInjectionToParameterizedWithTypeVariableUpperBoundTest,ParameterizedTypesInjectionToParameterizedWithWildcardTest,ParameterizedTypesInjectionToRawTypeTest,ParameterizedTypesWithTypeVariableWithMultipleBoundsTest,ParameterizedTypeWithWildcardTest,ParametrizedReturnTypeWithTypeVariable02Test,ParametrizedTypeWithWildcard02Test,PassivatingContextTest,PassivationCapabilityErrorTest,PassivationCapableBeanWithNonPassivatingInterceptorTest,PassivationCapableDependencyErrorTest,PassivationCapableInjectionPointTest,PassivationIdTest,PostConstructOrderTest,PrimitiveInjectionPointTest,PriorityTest,PrivateConstructorTest,PrivateFinalMethodTest,ProcessAnnotatedTypeEventThrowsExceptionTest,ProcessAnnotatedTypeTest,ProcessBeanAttributesNotFiredForSyntheticBeanTest,ProcessBeanTest,ProcessInjectionPointFiredTest,ProcessInjectionTargetEventThrowsExceptionTest,ProcessObserverMethodErrorTest,ProcessObserverMethodEventTest,ProcessObserverMethodExceptionTest,ProcessSyntheticAnnotatedTypeTest,ProducerConfiguratorTest,ProducerFieldArrayTypeVariableTest,ProducerFieldArrayWildcardTest,ProducerFieldDefinitionTest,ProducerFieldLifecycleTest,ProducerFieldLifecycleTest,ProducerFieldOnDecoratorTest,ProducerFieldOnInterceptorTest,ProducerFieldTooManyScopesTest,ProducerFieldTypeWithWildcardTest,ProducerFieldWithTypeVariableTest,ProducerMethodArrayTypeVariableTest,ProducerMethodArrayWildcardTest,ProducerMethodDefinitionTest,ProducerMethodDefinitionTest,ProducerMethodLifecycleTest,ProducerMethodLifecycleTest,ProducerMethodOnDecoratorTest,ProducerMethodOnInterceptorTest,ProducerMethodSpecializationTest,ProducerMethodTooManyScopesTest,ProducerMethodWithDefaultNameTest,ProducerMethodWithPrimitiveReturnTypePassivationTest,ProducerProcessingWithDefinitionErrorTest,ProducerProcessingWithExceptionTest,ProducerTest,ProducerWithPrimitiveFieldTypePassivationTest,ProducesUnallowedDefinitionTest,ProtectedFinalMethodNotProxyableTest,PublicFinalMethodNotProxyableTest,QualifierDefinitionTest,QualifierEquivalenceTest,QualifierInheritedTest,QualifierNotDeclaredTest,QualifierNotInheritedTest,RawBeanTypeParameterizedRequiredTypeTest,RawEventConstructorInjectionTest,RawEventCustomBeanTest,RawEventDisposerInjectionTest,RawEventFieldInjectionTest,RawEventInitMethodInjectionTest,RawEventObserverInjectionTest,RawEventProcessInjectionPointTest,RawEventProducerMethodInjectionTest,RawInstanceConstructorInjectionTest,RawInstanceCustomBeanTest,RawInstanceDisposerInjectionTest,RawInstanceFieldInjectionTest,RawInstanceInitMethodInjectionTest,RawInstanceObserverInjectionTest,RawInstanceProcessInjectionPointTest,RawInstanceProducerMethodInjectionTest,RegistrationTest,RepeatableQualifiersTest,RequestScopedProducerFieldWithTypeVariableTest,ResolutionByNameTest,ResolutionByNameTest,ResolutionByNameTest,ResolutionByTypeTest,ResolveEventObserversTest,ResolvingChecksBindingTypeMembersTest,RestrictedManagedBeanTest,RestrictedProducerFieldTest,RestrictedProducerMethodTest,SameClassListedTwiceInBeansXmlTest,SameTypeListedTwiceTest,ScopeDefinedInOtherBDATest,ScopeDefinitionTest,SelectedAlternative01Test,SelectedAlternative02Test,SelectedBeanWithUnselectedStereotypeTest,SelectEventTest,SetBeanAttributesTest,SetBeanAttributesTest,SimpleBeanDefinitionTest,SimpleBeanLifecycleTest,SimpleBeanLifecycleTest,SimpleBeanSpecializationTest,SingleInterceptorInstanceTest,SpecializationTest,SpecializesStaticMethodTest,SpecializingAndSpecializedBeanHasNameTest,SpecializingAndSpecializedBeanHaveNameTest,SpecializingBeanExtendsNothingTest,SpecializingBeanImplementsInterfaceOnlyTest,SpecializingBeanQualifiersTest,SpecializingBeanWithoutBeanTypeOfSpecializedBeanTest,SpecializingClassExtendsNonSimpleBeanTest,StaticFinalMethodTest,StereotypeDefinitionTest,StereotypeExtensionTest,StereotypeInheritedPriorityConflictTest,StereotypeInheritedPriorityTest,StereotypeInheritenceTest,StereotypeWithAlternativeSelectedByPriorityTest,StereoTypeWithBindingTypesTest,StereotypeWithMultipleInterceptorBindingsTest,StereotypeWithPriorityTest,SyncEventModificationTest,SyntheticBeanInjectionPointTest,SyntheticBeanTest,SyntheticBeanTest,SyntheticBeanWithLookupTest,SyntheticObserverOfParameterizedTypeTest,SyntheticObserverTest,SyntheticProducerTest,ThrowExceptionInProcessBeanObserverTest,ThrowExceptionTest,ThrowExceptionTest,ThrowExceptionTest,TooManyInitializerAnnotatedConstructorsTest,TooManyScopesTest,TooManyScopeTypesTest,TransientReferenceParameterTest,TransitiveIncompatibleStereotypesTest,TrimmedBeanArchiveTest,TwoBeansSpecializeTheSameBeanTest,TypeConflictDetectionTest,TypeParametersNotTheSameTest,TypeVariableInjectionPointTest,TypeVariableReturnTypeTest,UnamangedInstanceIllegalStatesTest,UnavailableMethodsDuringApplicationInitializationTest,UnmanagedInstanceTest,UnproxyableManagedBeanTest,UnproxyableTest,UnresolvedDisposalMethodDefinitionTest,UnsatisfiedDependencyTest,UnsatisfiedInjectableReferenceTest,ValidationTest,VerifyValuesTest,VetoedAlternativeTest,VetoedTest,VetoedTest,VetoTest,VetoTest,WithAnnotationsAppliedToIllegalContainerLifecycleEventParameterTest,WithAnnotationsAppliedToIllegalEventParameterTest,WithAnnotationsTest,WrapExpressionFactoryTest
public abstract class AbstractTest extends org.jboss.arquillian.testng.ArquillianAbstract CDI TCK test.
-
-
Field Summary
Fields Modifier and Type Field Description protected jakarta.enterprise.inject.spi.BeanManagerbeanManager
-
Constructor Summary
Constructors Constructor Description AbstractTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Objectactivate(byte[] bytes)protected booleanannotationSetMatches(Set<? extends Annotation> annotations, Annotation... requiredAnnotations)protected booleanannotationSetMatches(Set<? extends Annotation> annotations, Class<? extends Annotation>... requiredAnnotationTypes)Checks if all annotations are in a given set of annotationsprotected voiddestroyContext(jakarta.enterprise.context.spi.Context context)protected <T> Set<jakarta.enterprise.inject.spi.Bean<T>>getBeans(jakarta.enterprise.util.TypeLiteral<T> type, Annotation... bindings)protected <T> Set<jakarta.enterprise.inject.spi.Bean<T>>getBeans(Class<T> type, Annotation... bindings)protected <T> TgetContextualReference(jakarta.enterprise.util.TypeLiteral<T> beanType, Annotation... qualifiers)protected <T> TgetContextualReference(Class<T> beanType, Annotation... qualifiers)protected <T> TgetContextualReference(String name, Class<T> beanType)protected jakarta.enterprise.inject.spi.BeanContainergetCurrentBeanContainer()Note that TCK uses Arquillian Servlet protocol and so the test class is instantiated/enriched from within the WAR module.protected ConfigurationgetCurrentConfiguration()protected jakarta.enterprise.inject.spi.BeanManagergetCurrentManager()Note that TCK uses Arquillian Servlet protocol and so the test class is instantiated/enriched from within the WAR module.protected <T> jakarta.enterprise.inject.spi.Bean<T>getUniqueBean(jakarta.enterprise.util.TypeLiteral<T> type, Annotation... bindings)protected <T> jakarta.enterprise.inject.spi.Bean<T>getUniqueBean(Class<T> type, Annotation... bindings)protected booleanisThrowablePresent(Class<? extends Throwable> throwableType, Throwable throwable)Extracted from test harness.protected <T> DependentInstance<T>newDependentInstance(Class<T> beanType, Annotation... qualifiers)protected byte[]passivate(Object instance)protected booleanrawTypeSetMatches(Set<Type> types, Class<?>... requiredTypes)protected voidsetContextActive(jakarta.enterprise.context.spi.Context context)protected voidsetContextInactive(jakarta.enterprise.context.spi.Context context)protected booleantypeSetMatches(Collection<? extends Type> types, Type... requiredTypes)
-
-
-
Method Detail
-
getCurrentManager
protected jakarta.enterprise.inject.spi.BeanManager getCurrentManager()
Note that TCK uses Arquillian Servlet protocol and so the test class is instantiated/enriched from within the WAR module. This affects most of theBeanManagermethods functionality. For instance the methodBeanContainer.getBeans(Type, Annotation...)returns the set of beans which are available for injection in the module or library containing the class into which theBeanManagerwas injected (simplified).- Returns:
- the current
BeanManager
-
getCurrentBeanContainer
protected jakarta.enterprise.inject.spi.BeanContainer getCurrentBeanContainer()
Note that TCK uses Arquillian Servlet protocol and so the test class is instantiated/enriched from within the WAR module. This affects most of theBeanContainermethods functionality. For instance the methodBeanContainer.getBeans(Type, Annotation...)returns the set of beans which are available for injection in the module or library containing the class into which theBeanContainerwas injected (simplified).- Returns:
- the current
BeanContainer
-
passivate
protected byte[] passivate(Object instance) throws IOException
- Throws:
IOException
-
activate
protected Object activate(byte[] bytes) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
setContextActive
protected void setContextActive(jakarta.enterprise.context.spi.Context context)
-
setContextInactive
protected void setContextInactive(jakarta.enterprise.context.spi.Context context)
-
destroyContext
protected void destroyContext(jakarta.enterprise.context.spi.Context context)
-
getCurrentConfiguration
protected Configuration getCurrentConfiguration()
-
annotationSetMatches
protected boolean annotationSetMatches(Set<? extends Annotation> annotations, Class<? extends Annotation>... requiredAnnotationTypes)
Checks if all annotations are in a given set of annotations- Parameters:
annotations- The annotation setrequiredAnnotationTypes- The annotations to match- Returns:
- True if match, false otherwise
-
annotationSetMatches
protected boolean annotationSetMatches(Set<? extends Annotation> annotations, Annotation... requiredAnnotations)
- Parameters:
annotations- The annotation setrequiredAnnotationTypes- The required annotations- Returns:
trueif the specified set matches required annotations,falseotherwise
-
typeSetMatches
protected boolean typeSetMatches(Collection<? extends Type> types, Type... requiredTypes)
-
getUniqueBean
protected <T> jakarta.enterprise.inject.spi.Bean<T> getUniqueBean(Class<T> type, Annotation... bindings)
-
getUniqueBean
protected <T> jakarta.enterprise.inject.spi.Bean<T> getUniqueBean(jakarta.enterprise.util.TypeLiteral<T> type, Annotation... bindings)
-
getBeans
protected <T> Set<jakarta.enterprise.inject.spi.Bean<T>> getBeans(Class<T> type, Annotation... bindings)
-
getBeans
protected <T> Set<jakarta.enterprise.inject.spi.Bean<T>> getBeans(jakarta.enterprise.util.TypeLiteral<T> type, Annotation... bindings)
-
getContextualReference
protected <T> T getContextualReference(Class<T> beanType, Annotation... qualifiers)
-
getContextualReference
protected <T> T getContextualReference(jakarta.enterprise.util.TypeLiteral<T> beanType, Annotation... qualifiers)
-
newDependentInstance
protected <T> DependentInstance<T> newDependentInstance(Class<T> beanType, Annotation... qualifiers)
-
isThrowablePresent
protected boolean isThrowablePresent(Class<? extends Throwable> throwableType, Throwable throwable)
Extracted from test harness. We need this since testng expected exceptions feature is not working with exception cause - see org.testng.internal.Invoker.isExpectedException(Throwable, ExpectedExceptionsHolder).- Parameters:
throwableType-throwable-- Returns:
trueif throwable type is assignable from specified throwable or any cause in stack (works recursively),falseotherwise
-
-