本文整理汇总了Java中org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider类的典型用法代码示例。如果您正苦于以下问题:Java ResourceProvider类的具体用法?Java ResourceProvider怎么用?Java ResourceProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ResourceProvider类属于org.jboss.arquillian.test.spi.enricher.resource包,在下文中一共展示了ResourceProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: register
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder extensionBuilder) {
extensionBuilder.observer(InstallSeleniumCube.class);
extensionBuilder.observer(DroneOverwriteConfigurator.class);
extensionBuilder.observer(CubeDroneConfigurator.class);
extensionBuilder.observer(VncRecorderLifecycleManager.class);
extensionBuilder.observer(VideoConversionLifecycleManager.class);
overrideWebDriver(extensionBuilder, FirefoxDriverFactory.class);
overrideWebDriver(extensionBuilder, ChromeDriverFactory.class);
overrideWebDriver(extensionBuilder, HtmlUnitDriverFactory.class);
if (isGrapheneInStandaloneMode()) {
extensionBuilder.override(ResourceProvider.class, CustomizableURLResourceProvider.class,
DockerCubeCustomizableURLResourceProvider.class);
}
}
示例2: getNext
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
private ResourceProvider getNext() {
if (next != null) {
return next;
}
synchronized (this) {
Collection<ResourceProvider> providers = serviceLoader.get().all(ResourceProvider.class);
for (ResourceProvider provider : providers) {
if (!(provider instanceof KuberntesServiceUrlResourceProvider) && provider.canProvide(URL.class)) {
this.next = provider;
break;
}
}
}
return next;
}
示例3: register
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(final ExtensionBuilder builder) {
builder.service(DeploymentExceptionTransformer.class, ExceptionTransformer.class);
builder.service(ResourceProvider.class, ArchiveDeployerProvider.class);
builder.service(ResourceProvider.class, ManagementClientProvider.class);
builder.service(TestEnricher.class, ContainerResourceTestEnricher.class);
builder.observer(ServerSetupObserver.class);
// WildFlyContainerController
builder
.service(ResourceProvider.class, ClientWildFlyContainerControllerProvider.class)
.observer(ClientWildFlyContainerControllerCreator.class)
.observer(WildFlyContainerCommandObserver.class)
.observer(WildFlyContainerLifecycleController.class)
;
}
示例4: register
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@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
}
}
}
示例5: register
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@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();
}
}
}
示例6: register
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
public void register(ExtensionBuilder builder) {
// check if the extension is not disabled by a system property
if (System.getProperty(ArquillianConfig.SYSTEM_PROPERTY_DISABLE_EXTENSION) != null) {
return;
}
builder.observer(SunstoneObserver.class).service(ResourceProvider.class, CloudsRegistryResourceProvider.class)
.service(ResourceProvider.class, CloudProviderResourceProvider.class)
.service(ResourceProvider.class, NodeResourceProvider.class)
.override(ResourceProvider.class, URLResourceProvider.class, SunstoneURLResourceProvider.class);
}
示例7: register
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder) {
builder.observer(PactsRetriever.class)
.observer(InteractionRunner.class)
.observer(PactProviderConfigurator.class)
.observer(HttpTargetCreator.class)
.service(ResourceProvider.class, HttpTargetResourceProvider.class);
}
示例8: register
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder) {
builder.observer(AlgeronProviderConfigurator.class);
if (LoadableExtension.Validate.classExists(
"org.jboss.arquillian.container.test.spi.client.deployment.AuxiliaryArchiveAppender")) {
builder.observer(DeploymentEnabler.class);
builder.override(ResourceProvider.class, URLResourceProvider.class, EnvironmentUrlResourceProvider.class);
}
}
示例9: register
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder) {
builder.service(Protocol.class, DaemonProtocol.class)
.service(AuxiliaryArchiveAppender.class, WildFlySwarmDeploymentAppender.class)
.service(DeployableContainer.class, WildFlySwarmContainer.class)
.service(DeploymentScenarioGenerator.class, DefaultDeploymentScenarioGenerator.class)
.override(ResourceProvider.class, URLResourceProvider.class, SwarmURLResourceProvider.class)
.override(ResourceProvider.class, URIResourceProvider.class, SwarmURIResourceProvider.class)
.observer(WildFlySwarmObserver.class);
}
示例10: register
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@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);
}
示例11: register
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
public void register(ExtensionBuilder builder) {
builder.observer(CECubeInitializer.class)
.observer(CEEnvironmentProcessor.class);
builder.service(ResourceProvider.class, OpenShiftHandleResourceProvider.class);
builder.service(ResourceProvider.class, LocalConfigurationResourceProvider.class);
builder.service(AuxiliaryArchiveAppender.class, UtilsArchiveAppender.class);
builder.service(DeploymentScenarioGenerator.class, ExternalDeploymentScenarioGenerator.class);
}
示例12: register
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder) {
builder.observer(QNetworkChaosToxicCreator.class)
.observer(NetworkChaosConfigurator.class)
.observer(ToxiProxyAfterTestCleaner.class)
.service(ProxyManager.class, ToxicProxyHandler.class)
.service(ResourceProvider.class, QNetworkChaosResourceProvider.class);
}
示例13: register
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder extensionBuilder) {
extensionBuilder
.service(StandaloneManager.class, PumbaStandaloneContainerHandler.class)
.service(ResourceProvider.class, QContainerChaosPumbaResourceProvider.class)
.observer(QContainerChaosPumbaCreator.class)
.observer(QContainerChaosPumbaStopper.class);
}
示例14: register
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@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);
}
示例15: register
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@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);
}
}