org.jboss.arquillian.test.spi.TestEnricher Java Examples
The following examples show how to use
org.jboss.arquillian.test.spi.TestEnricher.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EmbeddedTomEEExtension.java From tomee with Apache License 2.0 | 6 votes |
@Override public void register(final ExtensionBuilder builder) { if (ArquillianUtil.isCurrentAdapter(ADAPTER)) { builder.service(DeployableContainer.class, EmbeddedTomEEContainer.class) .observer(DeploymentExceptionObserver.class) .observer(RemoteInitialContextObserver.class) .observer(TestObserver.class) .service(TestEnricher.class, TomEEInjectionEnricher.class) .service(ResourceProvider.class, DeploymentExceptionProvider.class); try { builder.service(TransactionProvider.class, (Class<? extends TransactionProvider>) Thread.currentThread().getContextClassLoader() .loadClass("org.apache.openejb.arquillian.transaction.OpenEJBTransactionProvider")); } catch (final Throwable t) { // skip, not mandatory } } }
Example #2
Source File: QuarkusExtension.java From quarkus with Apache License 2.0 | 5 votes |
@Override public void register(ExtensionBuilder builder) { builder.service(DeployableContainer.class, QuarkusDeployableContainer.class); builder.service(Protocol.class, QuarkusProtocol.class); builder.service(TestEnricher.class, InjectionEnricher.class); builder.service(TestEnricher.class, ArquillianResourceURLEnricher.class); builder.observer(CreationalContextDestroyer.class); builder.observer(QuarkusBeforeAfterLifecycle.class); builder.observer(RequestContextLifecycle.class); builder.observer(ClassLoaderExceptionTransformer.class); }
Example #3
Source File: SeedClientExtension.java From seed with Mozilla Public License 2.0 | 5 votes |
@Override public void register(final ExtensionBuilder builder) { // append arquillian support to the deployed app builder.service(AuxiliaryArchiveAppender.class, SeedArchiveAppender.class); // register the injection enricher builder.service(TestEnricher.class, InjectionTestEnricher.class); }
Example #4
Source File: OpenEJBExtension.java From tomee with Apache License 2.0 | 5 votes |
@Override public void register(final ExtensionBuilder extensionBuilder) { if (ArquillianUtil.isCurrentAdapter(OPENEJB_ADAPTER_NAME)) { extensionBuilder.service(DeployableContainer.class, OpenEJBDeployableContainer.class) .service(TestEnricher.class, OpenEJBInjectionEnricher.class) .service(ResourceProvider.class, DeploymentExceptionProvider.class) .service(TransactionProvider.class, OpenEJBTransactionProvider.class) .observer(TestObserver.class) .observer(DeploymentExceptionObserver.class); } }
Example #5
Source File: EmbeddedRemoteExtension.java From tomee with Apache License 2.0 | 5 votes |
@Override public void register(final ExtensionBuilder builder) { if (ArquillianUtil.isCurrentAdapter(EmbeddedTomEEExtension.ADAPTER)) { builder.observer(AppResourceProducer.class) .service(TestEnricher.class, TomEEInjectionEnricher.class); } }
Example #6
Source File: RemoteTomEERemoteExtension.java From tomee with Apache License 2.0 | 5 votes |
@Override public void register(final ExtensionBuilder builder) { builder.observer(RemoteTomEEObserver.class) .service(TestEnricher.class, TomEEInjectionEnricher.class); try { builder.service(TransactionProvider.class, (Class<? extends TransactionProvider>) Thread.currentThread().getContextClassLoader() .loadClass("org.apache.openejb.arquillian.transaction.OpenEJBTransactionProvider")); } catch (final Throwable t) { // skip, not mandatory } }
Example #7
Source File: KeycloakContainerTestExtension.java From keycloak with Apache License 2.0 | 5 votes |
private void registerOriginal(ExtensionBuilder builder) { // Start -> Copied from TestExtension builder.context(SuiteContextImpl.class) .context(ClassContextImpl.class) .context(TestContextImpl.class); builder.observer(TestContextHandler.class) .observer(ClientTestInstanceEnricher.class); // End -> Copied from TestExtension builder.service(AuxiliaryArchiveAppender.class, ArquillianDeploymentAppender.class) .service(TestEnricher.class, ArquillianResourceTestEnricher.class) .service(Protocol.class, LocalProtocol.class) .service(CommandService.class, LocalCommandService.class) .service(ResourceProvider.class, URLResourceProvider.class) .service(ResourceProvider.class, URIResourceProvider.class) .service(ResourceProvider.class, DeployerProvider.class) .service(ResourceProvider.class, InitialContextProvider.class) .service(ResourceProvider.class, ContainerControllerProvider.class); // ContainerEventController is overriden // builder.observer(ContainerEventController.class) builder.observer(ContainerRestarter.class) .observer(DeploymentGenerator.class) .observer(ArchiveDeploymentToolingExporter.class) .observer(ProtocolRegistryCreator.class) .observer(ClientContainerControllerCreator.class) .observer(ClientDeployerCreator.class) .observer(ClientBeforeAfterLifecycleEventExecuter.class) .observer(ClientTestExecuter.class) // .observer(LocalTestExecuter.class) .observer(ModelTestExecutor.class) .observer(RemoteTestExecuter.class) .observer(DeploymentCommandObserver.class) .observer(ContainerCommandObserver.class) .observer(RemoteResourceCommandObserver.class) .observer(KeycloakContainerFeaturesController.class); }
Example #8
Source File: KeycloakArquillianExtension.java From keycloak with Apache License 2.0 | 5 votes |
@Override public void register(ExtensionBuilder builder) { builder .service(ResourceProvider.class, SuiteContextProvider.class) .service(ResourceProvider.class, TestContextProvider.class) .service(ResourceProvider.class, AdminClientProvider.class) .service(ResourceProvider.class, OAuthClientProvider.class) .service(ResourceProvider.class, LoadBalancerControllerProvider.class); builder .service(DeploymentScenarioGenerator.class, DeploymentTargetModifier.class) .service(ApplicationArchiveProcessor.class, DeploymentArchiveProcessor.class) .service(TestEnricher.class, CacheStatisticsControllerEnricher.class) .observer(JmxConnectorRegistryCreator.class) .observer(AuthServerTestEnricher.class) .observer(AppServerTestEnricher.class) .observer(CrossDCTestEnricher.class) .observer(H2TestEnricher.class); builder .service(TestExecutionDecider.class, MigrationTestExecutionDecider.class) .service(TestExecutionDecider.class, AdapterTestExecutionDecider.class) .service(TestExecutionDecider.class, VaultTestExecutionDecider.class) .service(TestExecutionDecider.class, AuthServerExcludeExecutionDecider.class); builder .override(ResourceProvider.class, URLResourceProvider.class, URLProvider.class) .override(ResourceProvider.class, CustomizableURLResourceProvider.class, URLProvider.class) .override(ApplicationArchiveProcessor.class, OSGiApplicationArchiveProcessor.class, KeycloakOSGiApplicationArchiveProcessor.class) .override(ResourceProvider.class, ContainerCustomizableURLResourceProvider.class, URLProvider.class); builder .observer(KeycloakWebDriverConfigurator.class) .observer(HtmlUnitScreenshots.class) .observer(KeycloakDronePostSetup.class); }
Example #9
Source File: TomEEWebappRemoteExtension.java From tomee with Apache License 2.0 | 4 votes |
@Override public void register(final ExtensionBuilder builder) { builder.observer(TomEEWebappObserver.class) .service(TestEnricher.class, TomEEInjectionEnricher.class) .service(TransactionProvider.class, OpenEJBTransactionProvider.class); }