All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.arquillian.warp.WarpRemoteExtension Maven / Gradle / Ivy

The newest version!
/*
 * JBoss, Home of Professional Open Source
 * Copyright 2012, Red Hat Middleware LLC, and individual contributors
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jboss.arquillian.warp;

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension;
import org.jboss.arquillian.container.test.spi.command.CommandService;
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider;
import org.jboss.arquillian.warp.impl.server.commandBus.CommandServiceOnServer;
import org.jboss.arquillian.warp.impl.server.commandBus.WarpCommandService;
import org.jboss.arquillian.warp.impl.server.enrichment.DefaultHttpRequestDeenricher;
import org.jboss.arquillian.warp.impl.server.enrichment.DefaultHttpResponseEnricher;
import org.jboss.arquillian.warp.impl.server.enrichment.HttpRequestDeenricher;
import org.jboss.arquillian.warp.impl.server.enrichment.HttpResponseEnricher;
import org.jboss.arquillian.warp.impl.server.execution.HttpRequestProcessor;
import org.jboss.arquillian.warp.impl.server.execution.WarpLifecycle;
import org.jboss.arquillian.warp.impl.server.execution.WarpRequestProcessor;
import org.jboss.arquillian.warp.impl.server.inspection.InspectionRegistratryInitializer;
import org.jboss.arquillian.warp.impl.server.lifecycle.LifecycleManagerObserver;
import org.jboss.arquillian.warp.impl.server.manager.ManagerActivationObserver;
import org.jboss.arquillian.warp.impl.server.request.RequestContextHandler;
import org.jboss.arquillian.warp.impl.server.request.RequestContextImpl;
import org.jboss.arquillian.warp.impl.server.test.LifecycleTestClassExecutor;
import org.jboss.arquillian.warp.impl.server.test.LifecycleTestDriver;
import org.jboss.arquillian.warp.impl.server.test.LifecycleTestEnrichmentWatcher;
import org.jboss.arquillian.warp.impl.server.test.LifecycleTestExecutionVerifier;
import org.jboss.arquillian.warp.impl.server.test.TestResultObserver;
import org.jboss.arquillian.warp.servlet.provider.HttpServletRequestProvider;
import org.jboss.arquillian.warp.servlet.provider.HttpServletResponseProvider;
import org.jboss.arquillian.warp.servlet.provider.ServletRequestProvider;
import org.jboss.arquillian.warp.servlet.provider.ServletResponseProvider;

/**
 * 

The Arquillian Warp extension - server-side.

*

*

For client-side, see {@link WarpExtension}.

* * @author Lukas Fryc */ public class WarpRemoteExtension implements RemoteLoadableExtension { @Override public void register(ExtensionBuilder builder) { builder.context(RequestContextImpl.class); builder.service(ResourceProvider.class, ServletRequestProvider.class); builder.service(ResourceProvider.class, ServletResponseProvider.class); builder.service(ResourceProvider.class, HttpServletRequestProvider.class); builder.service(ResourceProvider.class, HttpServletResponseProvider.class); builder.observer(RequestContextHandler.class); builder.observer(LifecycleManagerObserver.class); builder.observer(LifecycleTestDriver.class); builder.observer(LifecycleTestClassExecutor.class); builder.observer(LifecycleTestEnrichmentWatcher.class); builder.observer(TestResultObserver.class); builder.observer(LifecycleTestExecutionVerifier.class); builder.observer(HttpRequestProcessor.class); builder.observer(WarpRequestProcessor.class); builder.observer(WarpLifecycle.class); builder.service(HttpRequestDeenricher.class, DefaultHttpRequestDeenricher.class); builder.service(HttpResponseEnricher.class, DefaultHttpResponseEnricher.class); builder.service(CommandService.class, WarpCommandService.class); builder.service(org.jboss.arquillian.warp.impl.shared.command.CommandService.class, CommandServiceOnServer.class); builder.observer(ManagerActivationObserver.class); builder.observer(InspectionRegistratryInitializer.class); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy