org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider Java Examples
The following examples show how to use
org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider.
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: RemoteTomEEExtension.java From tomee with Apache License 2.0 | 6 votes |
@Override public void register(final ExtensionBuilder builder) { if (ArquillianUtil.isCurrentAdapter(ADAPTER)) { final ReentrantLock l = lock; l.lock(); try { if (!registered.getAndSet(true)) { try { builder.observer(RemoteInitialContextObserver.class); builder.observer(DeploymentExceptionObserver.class); builder.service(DeployableContainer.class, RemoteTomEEContainer.class) .service(AuxiliaryArchiveAppender.class, RemoteTomEEEJBEnricherArchiveAppender.class) .service(ResourceProvider.class, DeploymentExceptionProvider.class); } catch (final IllegalArgumentException e) { Logger.getLogger(RemoteTomEEExtension.class.getName()).log(Level.WARNING, "RemoteTomEEExtension: " + e.getMessage()); } } } finally { l.unlock(); } } }
Example #2
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 #3
Source File: HammockArquillianExtension.java From hammock with Apache License 2.0 | 5 votes |
@Override public void register(ExtensionBuilder extensionBuilder) { extensionBuilder .service(ApplicationArchiveProcessor.class, HammockArchiveAppender.class) .override(ResourceProvider.class, URIResourceProvider.class, HammockURIProvider.class) .override(ResourceProvider.class, URLResourceProvider.class, HammockURLProvider.class); }
Example #4
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 #5
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 #6
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 #7
Source File: TomEEWebappExtension.java From tomee with Apache License 2.0 | 5 votes |
@Override public void register(final ExtensionBuilder builder) { if (ArquillianUtil.isCurrentAdapter(ADAPTER)) { final ReentrantLock l = lock; l.lock(); try { if (!registered.getAndSet(true)) { try { builder.observer(DeploymentExceptionObserver.class); builder.observer(RemoteInitialContextObserver.class); builder.service(DeployableContainer.class, TomEEWebappContainer.class) .service(AuxiliaryArchiveAppender.class, TomEEWebappEJBEnricherArchiveAppender.class) .service(ResourceProvider.class, DeploymentExceptionProvider.class); } catch (final IllegalArgumentException e) { Logger.getLogger(TomEEWebappExtension.class.getName()).log(Level.WARNING, "TomEEWebappExtension: " + e.getMessage()); } } } finally { l.unlock(); } } }
Example #8
Source File: AsciidoctorExtension.java From asciidoctorj with Apache License 2.0 | 5 votes |
@Override public void register(ExtensionBuilder builder) { builder.service(ResourceProvider.class, AsciidoctorResourceProvider.class); builder.service(ResourceProvider.class, ClasspathResourcesResourceProvider.class); builder.service(ResourceProvider.class, TemporaryFolderResourceProvider.class); builder.observer(AsciidoctorTestObserver.class); }
Example #9
Source File: WildFlySwarmExtension.java From thorntail with Apache License 2.0 | 5 votes |
@Override public void register(ExtensionBuilder builder) { builder.service(Protocol.class, DaemonProtocol.class) .service(AuxiliaryArchiveAppender.class, WildFlySwarmDeploymentAppender.class) .service(DeployableContainer.class, WildFlySwarmContainer.class) .override(DeploymentScenarioGenerator.class, AnnotationDeploymentScenarioGenerator.class, DefaultDeploymentScenarioGenerator.class) .override(ResourceProvider.class, URLResourceProvider.class, SwarmURLResourceProvider.class) .override(ResourceProvider.class, URIResourceProvider.class, SwarmURIResourceProvider.class) .observer(WildFlySwarmObserver.class); }
Example #10
Source File: ArchiveAppenderExtension.java From hammock with Apache License 2.0 | 5 votes |
@Override public void register(ExtensionBuilder extensionBuilder) { extensionBuilder .service(ApplicationArchiveProcessor.class, HammockArchiveAppender.class) .service(ApplicationArchiveProcessor.class, ConfigArchiveAppender.class) .override(ResourceProvider.class, URIResourceProvider.class, HammockURIProvider.class) .override(ResourceProvider.class, URLResourceProvider.class, HammockURLProvider.class) ; }
Example #11
Source File: VideoExtension.java From arquillian-recorder with Apache License 2.0 | 5 votes |
@Override public void register(ExtensionBuilder builder) { builder.observer(VideoLifecycleObserver.class); builder.observer(VideoRecorderExtensionInitializer.class); builder.service(ResourceProvider.class, RecorderProvider.class); builder.service(VideoStrategy.class, SkippingVideoStrategy.class); builder.service(VideoStrategy.class, DefaultVideoStrategy.class); builder.observer(VideoTaker.class); builder.observer(InTestVideoResourceReportObserver.class); }
Example #12
Source File: ScreenshooterExtension.java From arquillian-recorder with Apache License 2.0 | 5 votes |
@Override public void register(ExtensionBuilder builder) { builder.observer(ScreenshooterExtensionInitializer.class); builder.service(ResourceProvider.class, ScreenshooterProvider.class); builder.observer(InTestScreenshotResourceReportObserver.class); builder.observer(BlurAfterScreenshotTakenObserver.class); builder.service(ScreenshootingStrategy.class, DefaultScreenshootingStrategy.class); builder.service(ScreenshootingStrategy.class, DefaultAnnotationScreenshootingStrategy.class); }
Example #13
Source File: GitHubGovernorExtension.java From arquillian-governor with Apache License 2.0 | 5 votes |
@Override public void register(ExtensionBuilder builder) { builder.observer(GitHubTestExecutionDecider.class); builder.observer(GitHubGovernorConfigurator.class); builder.service(TestExecutionDecider.class, GitHubTestExecutionDecider.class); builder.service(ResourceProvider.class, GitHubClientProvider.class); //Only if recorder-reporter is in classpath we should provide reporting capabilities. if (Validate.classExists("org.arquillian.recorder.reporter.ReporterExtension")) { builder.observer(GitHubGovernorRecorder.class); } }
Example #14
Source File: RedmineGovernorExtension.java From arquillian-governor with Apache License 2.0 | 5 votes |
@Override public void register(ExtensionBuilder builder) { builder.observer(RedmineTestExecutionDecider.class); builder.observer(RedmineGovernorConfigurator.class); builder.service(TestExecutionDecider.class, RedmineTestExecutionDecider.class); builder.service(ResourceProvider.class, RedmineClientProvider.class); //Only if recorder-reporter is in classpath we should provide reporting capabilities. if (Validate.classExists("org.arquillian.recorder.reporter.ReporterExtension")) { builder.observer(RedmineGovernorRecorder.class); } }
Example #15
Source File: WildFlySwarmExtension.java From ARCHIVE-wildfly-swarm with Apache License 2.0 | 5 votes |
@Override public void register(ExtensionBuilder builder) { builder.service(Protocol.class, DaemonProtocol.class) .service(AuxiliaryArchiveAppender.class, WildFlySwarmDeploymentAppender.class) .service(DeployableContainer.class, WildFlySwarmContainer.class) .override(ResourceProvider.class, URLResourceProvider.class, SwarmURLResourceProvider.class) .override(ResourceProvider.class, URIResourceProvider.class, SwarmURIResourceProvider.class) .observer(WildFlySwarmObserver.class); }
Example #16
Source File: WildFlySwarmRemoteExtension.java From thorntail with Apache License 2.0 | 5 votes |
@Override public void register(ExtensionBuilder builder) { builder.override(ResourceProvider.class, ContainerURLResourceProvider.class, SwarmURLResourceProvider.class) .override(ResourceProvider.class, ContainerURIResourceProvider.class, SwarmURIResourceProvider.class) .service(ResourceProvider.class, ServiceRegistryResourceProvider.class) .service(CommandService.class, WildFlySwarmCommandService.class); }
Example #17
Source File: WildFlySwarmRemoteExtension.java From ARCHIVE-wildfly-swarm with Apache License 2.0 | 4 votes |
@Override public void register(ExtensionBuilder builder) { builder.override(ResourceProvider.class, ContainerURLResourceProvider.class, SwarmURLResourceProvider.class) .override(ResourceProvider.class, ContainerURIResourceProvider.class, SwarmURIResourceProvider.class); }
Example #18
Source File: CamelRemoteLoadableExtension.java From wildfly-camel with Apache License 2.0 | 4 votes |
@Override public void register(ExtensionBuilder builder) { builder.service(ResourceProvider.class, CamelContextFactoryProvider.class); builder.service(ResourceProvider.class, CamelContextRegistryProvider.class); }