当前位置: 首页>>代码示例>>Java>>正文


Java RemoteLoadableExtension类代码示例

本文整理汇总了Java中org.jboss.arquillian.container.test.spi.RemoteLoadableExtension的典型用法代码示例。如果您正苦于以下问题:Java RemoteLoadableExtension类的具体用法?Java RemoteLoadableExtension怎么用?Java RemoteLoadableExtension使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


RemoteLoadableExtension类属于org.jboss.arquillian.container.test.spi包,在下文中一共展示了RemoteLoadableExtension类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createAuxiliaryArchive

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension; //导入依赖的package包/类
@Override
public Archive<?> createAuxiliaryArchive() {
	Collection<JavaArchive> archives = DependencyResolvers
			.use(MavenDependencyResolver.class).goOffline()
			.loadMetadataFromPom("pom.xml")
			.artifacts("org.jbehave:jbehave-core:jar:3.8-SNAPSHOT")
			.resolveAs(JavaArchive.class);
	JavaArchive archive = ShrinkWrap.create(JavaArchive.class,
			"arquillian-jbehave.jar");
	for (Archive<JavaArchive> element : archives) {
		archive.merge(element);
	}

	archive.addClasses(JBehaveContainerExtension.class,
			ArquillianInstanceStepsFactory.class,
			StepEnricherProvider.class);
	archive.addAsServiceProvider(RemoteLoadableExtension.class,
			JBehaveContainerExtension.class);
	return archive;
}
 
开发者ID:andreiserea,项目名称:arquillian-jbehave,代码行数:21,代码来源:JBehaveCoreMavenDeploymentAppender.java

示例2: createAuxiliaryArchive

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension; //导入依赖的package包/类
@Override
public Archive<?> createAuxiliaryArchive() {
    JavaArchive arquillianPactConsumer = null;
    arquillianPactConsumer = ShrinkWrap.create(JavaArchive.class, "arquillian-pact-consumer.jar")
        // Add Core classes required in container part
        .addClasses(AbstractConsumerPactTest.class,
            RemoteConsumerPactTest.class, PactConsumerConfiguration.class,
            MockProviderConfigCreator.class, PactConsumerConfigurator.class,
            PactConsumerRemoteExtension.class, PactFilesCommand.class, ConsumerProviderPair.class,
            PactMismatchesException.class, ConsumerPactRunnerKt.class, HttpHandler.class, HttpServer.class,
            HttpServerProvider.class,
            ResolveClassAnnotation.class, StubServer.class, StubServerEnricher.class,
            HttpsServer.class, HttpContext.class)
        .addPackages(true, Pact.class.getPackage())
        .addAsServiceProvider(RemoteLoadableExtension.class, PactConsumerRemoteExtension.class);

    arquillianPactConsumer = addSunHttpServer(arquillianPactConsumer);

    final Properties properties = pactConsumerConfigurationInstance.get().asProperties();
    String configuration = toString(properties);

    arquillianPactConsumer.add(new StringAsset(configuration), "/pact-consumer-configuration.properties");

    final JavaArchive[] pactConsumerDeps = Maven.resolver()
        .resolve("au.com.dius:pact-jvm-consumer_2.11:" + getVersion())
        .withTransitivity().as(JavaArchive.class);

    final JavaArchive merge = merge(arquillianPactConsumer, pactConsumerDeps);
    return merge;
}
 
开发者ID:arquillian,项目名称:arquillian-algeron,代码行数:31,代码来源:PactConsumerArchiveAppender.java

示例3: buildArchive

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension; //导入依赖的package包/类
@Override
protected Archive<?> buildArchive() {
    return ShrinkWrap.create(JavaArchive.class)
            .addPackages(
                    true,
                    "org.wildfly.swarm.arquillian.adapter.resources")
            .addClass(WildFlySwarmRemoteExtension.class)
            .addClass(WildFlySwarmCommandService.class)
            .addClass(ServiceRegistryServiceActivator.class)
            .addAsServiceProvider(RemoteLoadableExtension.class, WildFlySwarmRemoteExtension.class)
            .addAsServiceProvider(ServiceActivator.class, ServiceRegistryServiceActivator.class)
            .addAsServiceProvider(ExtensionLoader.class, RemoteExtensionLoader.class);
}
 
开发者ID:wildfly-swarm,项目名称:wildfly-swarm,代码行数:14,代码来源:WildFlySwarmDeploymentAppender.java

示例4: createAuxiliaryArchive

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension; //导入依赖的package包/类
@Override
public Archive<?> createAuxiliaryArchive() {
	JavaArchive archive = ShrinkWrap.create(
		JavaArchive.class, "arquillian-testenricher-liferay-osgi.jar");

	archive.addAsServiceProvider(
		RemoteLoadableExtension.class,
		LiferayEnricherRemoteExtension.class);

	archive.addClasses(
		Inject.class, LiferayTestEnricher.class,
		LiferayEnricherRemoteExtension.class);

	return archive;
}
 
开发者ID:liferay-labs,项目名称:arquillian-liferay,代码行数:16,代码来源:LiferayEnricherAuxiliaryAppender.java

示例5: createAuxiliaryArchive

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension; //导入依赖的package包/类
@Override
public Archive<?> createAuxiliaryArchive() {
	JavaArchive archive = ShrinkWrap.create(
		JavaArchive.class, "arquillian-wait4service-liferay-osgi.jar");

	archive.addAsServiceProvider(
		RemoteLoadableExtension.class,
		LiferayWaitForServiceBuilderExtension.class);

	archive.addClasses(
		Inject.class, LiferayWaitForServiceBuilderObserver.class,
		LiferayWaitForServiceBuilderExtension.class);

	return archive;
}
 
开发者ID:liferay-labs,项目名称:arquillian-liferay,代码行数:16,代码来源:LiferayWaitForServiceBuilderAuxiliaryAppender.java

示例6: createAuxiliaryArchive

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension; //导入依赖的package包/类
public Archive<?> createAuxiliaryArchive() {
    return ShrinkWrap.create(JavaArchive.class, "ce-arq-utils.jar")
        .add(new StringAsset(RemoteConfigurationResourceProvider.toProperties(configurationInstance.get())), RemoteConfigurationResourceProvider.FILE_NAME)
        .addClass(ConfigurationHandle.class)
        .addClass(OpenShiftHandle.class)
        .addClass(Tools.class)
        .addClass(UtilsCEExtensionContainer.class)
        .addClass(RemoteConfigurationResourceProvider.class)
        .addAsServiceProviderAndClasses(RemoteLoadableExtension.class, UtilsCEExtensionContainer.class);
}
 
开发者ID:jboss-openshift,项目名称:ce-arq,代码行数:11,代码来源:UtilsArchiveAppender.java

示例7: createAuxiliaryArchive

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension; //导入依赖的package包/类
@Override
public Archive<?> createAuxiliaryArchive() {
	return ShrinkWrap
			.create(JavaArchive.class, "arquillian-systemproperties.jar")
			.addPackage(SystemPropertiesRemoteExtension.class.getPackage())
			.addClass(SystemProperties.class)
			.addAsServiceProvider(RemoteLoadableExtension.class,
					SystemPropertiesRemoteExtension.class);
}
 
开发者ID:Blazebit,项目名称:blaze-storage,代码行数:10,代码来源:ArchiveAppender.java

示例8: buildArchive

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension; //导入依赖的package包/类
@Override
protected Archive<?> buildArchive() {
    return ShrinkWrap.create(JavaArchive.class)
            .addPackages(
                    true,
                    "org.jboss.arquillian.container.test.spi",
                    "org.wildfly.swarm.arquillian.resources")
            .addClass(WildFlySwarmRemoteExtension.class)
            .addAsServiceProvider(RemoteLoadableExtension.class, WildFlySwarmRemoteExtension.class)
            .addAsServiceProvider(ExtensionLoader.class, RemoteExtensionLoader.class);
}
 
开发者ID:wildfly-swarm-archive,项目名称:ARCHIVE-wildfly-swarm,代码行数:12,代码来源:WildFlySwarmDeploymentAppender.java

示例9: createAuxiliaryArchive

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension; //导入依赖的package包/类
@Override
public Archive<?> createAuxiliaryArchive() {
	JavaArchive archive = ShrinkWrap.create(
		JavaArchive.class, "arquillian-wait4service-liferay-osgi.jar");

	archive.addAsServiceProvider(
		RemoteLoadableExtension.class,
		LiferayWaitForServiceExtension.class);

	archive.addClasses(
		Inject.class, LiferayWaitForServiceObserver.class,
		LiferayWaitForServiceExtension.class);

	return archive;
}
 
开发者ID:arquillian,项目名称:arquillian-extension-liferay,代码行数:16,代码来源:LiferayWaitForServiceAuxiliaryAppender.java

示例10: createAuxiliaryArchive

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension; //导入依赖的package包/类
@Override
public Archive<?> createAuxiliaryArchive() {
	JavaArchive archive = ShrinkWrap.create(
		JavaArchive.class, "arquillian-command-service.jar");

	archive.addAsServiceProvider(
		RemoteLoadableExtension.class, CommandServiceExtension.class);

	archive.addClasses(CommandServiceExtension.class);

	return archive;
}
 
开发者ID:arquillian,项目名称:arquillian-extension-liferay,代码行数:13,代码来源:CommandServiceAuxiliaryAppender.java

示例11: createAuxiliaryArchive

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension; //导入依赖的package包/类
@Override
public Archive<?> createAuxiliaryArchive() {
	JavaArchive archive = ShrinkWrap.create(
		JavaArchive.class, "arquillian-classpath-osgi.jar");

	archive.addAsServiceProvider(
		RemoteLoadableExtension.class, BundleClassPathExtension.class);

	archive.addClasses(
		BundleClassPathExtension.class, BundleClassPathObserver.class);

	return archive;
}
 
开发者ID:arquillian,项目名称:arquillian-extension-liferay,代码行数:14,代码来源:BundleClassPathAuxiliaryAppender.java

示例12: createAuxiliaryArchive

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension; //导入依赖的package包/类
@Override
public Archive<?> createAuxiliaryArchive() {
    JavaArchive javaArchive = ShrinkWrap.create(JavaArchive.class, "arquillian-cube.jar")
        .addPackage(CubeController.class.getPackage())
        .addPackages(true, CubeRemoteExtension.class.getPackage())
        .addClasses(CubeControllerProvider.class, CubeControlException.class)
        .addAsServiceProvider(RemoteLoadableExtension.class, CubeRemoteExtension.class);

    if (LoadableExtension.Validate.classExists("org.arquillian.cube.requirement.ArquillianConditionalRunner")) {
        javaArchive.addPackages(true, ArquillianConditionalRunner.class.getPackage(), Requires.class.getPackage());
    }

    return javaArchive;
}
 
开发者ID:arquillian,项目名称:arquillian-cube,代码行数:15,代码来源:CubeAuxiliaryArchiveAppender.java

示例13: createAuxiliaryArchive

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension; //导入依赖的package包/类
@Override
public Archive<?> createAuxiliaryArchive() {

	final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "arquillian-mail.jar")
			.addClass(MailRemoteExtension.class)
			.addPackages(true, "org.jboss.arquillian.extension.mail.api")
			.addPackages(true, "org.jboss.arquillian.extension.mail.impl.container")
			.addPackages(true, "com.icegreen.greenmail")
			.addAsServiceProvider(RemoteLoadableExtension.class, MailRemoteExtension.class);

	return jar;
}
 
开发者ID:rbattenfeld,项目名称:arquillian-extension-mail-master,代码行数:13,代码来源:MailDeploymentAppender.java

示例14: createAuxiliaryArchive

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension; //导入依赖的package包/类
@Override
public Archive<?> createAuxiliaryArchive() {
    JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "arquillian-testenricher-msc.jar");
    archive.addAsServiceProvider(RemoteLoadableExtension.class, MSCEnricherRemoteExtension.class);
    archive.addPackage(MSCEnricherExtension.class.getPackage());
    return archive;
}
 
开发者ID:wildfly,项目名称:wildfly-arquillian,代码行数:8,代码来源:MSCAuxiliaryArchiveAppender.java

示例15: buildArchive

import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension; //导入依赖的package包/类
@Override
protected Archive<?> buildArchive() {
    return ShrinkWrap.create(JavaArchive.class, "wildfly-arquillian-domain.jar")
            .addPackages(
                    true,
                    "org.wildfly.arquillian.domain.api",
                    "org.wildfly.arquillian.domain.container.controller"
            )
            .addClasses(AbstractTargetsContainerProvider.class, DomainRemoteExtension.class)
            .addAsServiceProvider(RemoteLoadableExtension.class, DomainRemoteExtension.class);
}
 
开发者ID:wildfly,项目名称:wildfly-arquillian,代码行数:12,代码来源:DomainArquillianDeploymentAppender.java


注:本文中的org.jboss.arquillian.container.test.spi.RemoteLoadableExtension类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。