org.jboss.arquillian.container.test.spi.client.deployment.AuxiliaryArchiveAppender Java Examples

The following examples show how to use org.jboss.arquillian.container.test.spi.client.deployment.AuxiliaryArchiveAppender. 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 vote down vote up
@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: WildFlySwarmExtension.java    From thorntail with Apache License 2.0 5 votes vote down vote up
@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 #3
Source File: WildFlySwarmExtension.java    From ARCHIVE-wildfly-swarm with Apache License 2.0 5 votes vote down vote up
@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 #4
Source File: SeedClientExtension.java    From seed with Mozilla Public License 2.0 5 votes vote down vote up
@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 #5
Source File: TomEEWebappExtension.java    From tomee with Apache License 2.0 5 votes vote down vote up
@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 #6
Source File: KeycloakContainerTestExtension.java    From keycloak with Apache License 2.0 5 votes vote down vote up
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 #7
Source File: ManagedSEContainerExtension.java    From camel-spring-boot with Apache License 2.0 4 votes vote down vote up
@Override
public void register(final ExtensionBuilder builder) {
    builder.service(DeployableContainer.class, ManagedSEDeployableContainer.class);
    builder.service(Protocol.class, CustomJMXProtocol.class);
    builder.service(AuxiliaryArchiveAppender.class, SEContainerAppender.class);
}
 
Example #8
Source File: SmallRyeConfigExtension.java    From smallrye-config with Apache License 2.0 4 votes vote down vote up
@Override
public void register(ExtensionBuilder extensionBuilder) {
    extensionBuilder.service(AuxiliaryArchiveAppender.class, SmallRyeConfigAuxiliaryArchiveAppender.class);
}
 
Example #9
Source File: ReactiveMessagingLoadableExtension.java    From microprofile-reactive-messaging with Apache License 2.0 4 votes vote down vote up
@Override
public void register(ExtensionBuilder builder) {
    builder.service(AuxiliaryArchiveAppender.class, AwaitilityArchiveAppender.class)
            .service(AuxiliaryArchiveAppender.class, RxJavaArchiveAppender.class)
            .service(AuxiliaryArchiveAppender.class, AssertJArchiveAppender.class);
}
 
Example #10
Source File: TckLoadableExtension.java    From microprofile-fault-tolerance with Apache License 2.0 4 votes vote down vote up
@Override
public void register(ExtensionBuilder builder) {
    builder.service(AuxiliaryArchiveAppender.class, HamcrestArchiveAppender.class);
    builder.service(AuxiliaryArchiveAppender.class, AwaitilityArchiveAppender.class);
    builder.service(AuxiliaryArchiveAppender.class, TCKConfigArchiveAppender.class);
}
 
Example #11
Source File: ConfigExtension.java    From thorntail with Apache License 2.0 4 votes vote down vote up
@Override
public void register(ExtensionBuilder builder) {
    builder.service(AuxiliaryArchiveAppender.class, ConfigAuxiliaryArchiveAppender.class);
    builder.service(DeploymentExceptionTransformer.class, SwarmDeploymentExceptionTransformer.class);
}
 
Example #12
Source File: ArquillianChameleonRunnerExtension.java    From arquillian-container-chameleon with Apache License 2.0 4 votes vote down vote up
@Override
public void register(ExtensionBuilder builder) {
    builder.service(AuxiliaryArchiveAppender.class, ChameleonRunnerAppender.class);
}
 
Example #13
Source File: NamespaceExtensionClient.java    From appengine-tck with Apache License 2.0 4 votes vote down vote up
public void register(ExtensionBuilder builder) {
    if (ignoreWithinNamespace == false) {
        builder.service(AuxiliaryArchiveAppender.class, NamespaceArchiveAppender.class);
    }
}
 
Example #14
Source File: CamelLoadableExtension.java    From wildfly-camel with Apache License 2.0 4 votes vote down vote up
@Override
public void register(ExtensionBuilder builder) {
    builder.service(AuxiliaryArchiveAppender.class, CamelAuxiliaryArchiveAppender.class);
}
 
Example #15
Source File: CategoriesExtension.java    From metrics-cdi with Apache License 2.0 4 votes vote down vote up
public void register(ExtensionBuilder builder) {
    builder.service(AuxiliaryArchiveAppender.class, CategoryArchiveAppender.class);
}
 
Example #16
Source File: DeltaSpikeTestUtilExtension.java    From deltaspike with Apache License 2.0 4 votes vote down vote up
@Override
public void register(final ExtensionBuilder extensionBuilder)
{
    extensionBuilder.service(AuxiliaryArchiveAppender.class, DeltaSpikeServerUtilAppender.class);
    extensionBuilder.service(AuxiliaryArchiveAppender.class, TestUtilDependenciesAppender.class);
}