public class

CoreOptions

extends Object
java.lang.Object
   ↳ org.ops4j.pax.exam.CoreOptions

Class Overview

Factory methods for core options.

Deprecated options are only supported by Pax Runner Container which is deprecated itself and will be removed in Pax Exam 3.0.

Summary

Public Methods
static Option allEquinoxVersions()
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static Option allFelixVersions()
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static Option allFrameworks()
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static Option allFrameworksVersions()
Creates a composite option of all versions of Felix, Equinox and Knopflerfish.
static Option allKnopflerfishVersions()
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static AutoWrapOption autoWrap()
Creates a AutoWrapOption.
static Option bootClasspathLibraries(String... urls)
Creates a composite option of BootClasspathLibraryOptions.
static Option bootClasspathLibraries(BootClasspathLibraryOption... libraries)
Creates a composite option of BootClasspathLibraryOptions.
static BootClasspathLibraryOption bootClasspathLibrary(String libraryUrl)
static BootClasspathLibraryOption bootClasspathLibrary(UrlReference libraryUrl)
static BootDelegationOption bootDelegationPackage(String pkg)
static Option bootDelegationPackages(String... packages)
Creates a composite option of BootDelegationOptions.
static Option bootDelegationPackages(BootDelegationOption... packages)
Creates a composite option of BootDelegationOptions.
static UrlProvisionOption bundle(String url)
static BundleStartLevelOption bundleStartLevel(int startLevel)
static CleanCachesOption cleanCaches()
static CleanCachesOption cleanCaches(boolean value)
static ProfileOption compendiumProfile()
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static Option composite(Option... options)
Convenience method (more to be used for a nice fluent api) for creating a composite option.
static ProfileOption configProfile()
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static CustomFrameworkOption customFramework(String baseFrameworkName, String definitionURL, String name)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static DebugClassLoadingOption debugClassLoading()
static ProfileOption dsProfile()
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static EasyMockBundlesOption easyMockBundles()
static EquinoxFrameworkOption equinox()
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static ExcludeDefaultRepositoriesOption excludeDefaultRepositories()
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static FelixFrameworkOption felix()
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static Option frameworkProperties(FrameworkPropertyOption... frameworkProperties)
Creates a composite option of FrameworkPropertyOptions.
static FrameworkPropertyOption frameworkProperty(String key)
static FrameworkStartLevelOption frameworkStartLevel(int startLevel)
static Option frameworks(FrameworkOption... frameworks)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static JMockBundlesOption jmockBundles()
static CompositeOption junitBundles()
static CleanCachesOption keepCaches()
static KnopflerfishFrameworkOption knopflerfish()
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static LocalRepositoryOption localRepository(String path)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static ProfileOption logProfile()
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static MavenArtifactUrlReference maven()
static MavenArtifactUrlReference maven(String groupId, String artifactId)
Convenience method (shorter) for referencing an maven artifact based on groupId/artifactId.
static MavenArtifactUrlReference maven(String groupId, String artifactId, String version)
Convenience method (shorter) for referencing a maven artifact based on groupId/artifactId/version.
static MavenArtifactProvisionOption mavenBundle()
static MavenArtifactProvisionOption mavenBundle(String groupId, String artifactId)
Convenience method (shorter) for adding a maven bundle based on groupId/artifactId.
static MavenArtifactProvisionOption mavenBundle(String groupId, String artifactId, String version)
Convenience method (shorter) for adding a maven bundle based on groupId/artifactId/version.
static MavenArtifactProvisionOption mavenBundle(MavenArtifactUrlReference artifact)
Convenience factory method for adding a maven bundle based on a meven artifact.
static MavenPluginGeneratedConfigOption mavenConfiguration()
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static MavenPluginGeneratedConfigOption mavenConfiguration(String url)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static MavenPluginGeneratedConfigOption mavenConfiguration(URL url)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static MockitoBundlesOption mockitoBundles()
static Option[] options(Option... options)
Convenience method (more to be used for a nice fluent api) for creating an array of options.
static ProfileOption profile(String name)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static ProfileOption profile(String name, String version)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static Option profiles(ProfileOption... profiles)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static Option provision(InputStream... streams)
Creates a composite option of ProvisionOptions.
static Option provision(String... urls)
Creates a composite option of ProvisionOptions.
static Option provision(ProvisionOption...<?> urls)
Creates a composite option of ProvisionOptions.
static RawPaxRunnerOptionOption rawPaxRunnerOption(String option)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static RawPaxRunnerOptionOption rawPaxRunnerOption(String key, String value)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static Option repositories(String... repositoryUrls)
Creates a composite option of RepositoryOptions.
static Option repositories(RepositoryOption... repositoryOptions)
Creates a composite option of RepositoryOptions.
static RepositoryOption repository(String repositoryUrl)
Creates a RepositoryOption.
static RawScannerProvisionOption scan(String provisionSpec)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static BundleScannerProvisionOption scanBundle(String bundleUrl)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static BundleScannerProvisionOption scanBundle(UrlReference bundleUrl)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static CompositeScannerProvisionOption scanComposite(String fileUrl)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static CompositeScannerProvisionOption scanComposite(UrlReference fileUrl)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static DirScannerProvisionOption scanDir(String directory)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static FeaturesScannerProvisionOption scanFeatures(String repositoryUrl, String... features)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static FeaturesScannerProvisionOption scanFeatures(UrlReference repositoryUrl, String... features)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static FileScannerProvisionOption scanFile(String fileUrl)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static FileScannerProvisionOption scanFile(UrlReference fileUrl)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static PomScannerProvisionOption scanPom()
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static PomScannerProvisionOption scanPom(String url)
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static Option serverMode()
Creates a CleanCachesOption.value(false) + workingDirectory(folder) options.
static UrlProvisionOption streamBundle(InputStream stream)
static SystemPackageOption systemPackage(String pkg)
static Option systemPackages(String... packages)
Creates a composite option of SystemPackageOptions.
static Option systemPackages(SystemPackageOption... packages)
Creates a composite option of SystemPackageOptions.
static Option systemProperties(SystemPropertyOption... systemProperties)
Creates a composite option of SystemPropertyOptions.
static SystemPropertyOption systemProperty(String key)
static TimeoutOption systemTimeout(long timeoutInMillis)
Creates a TimeoutOption for a number of millis.
static UrlProvisionOption url(String url)
static VMOption vmOption(String vmOption)
Creates a VMOption.
static Option vmOptions(String... vmOptions)
Creates a composite option of VMOptions.
static Option vmOptions(VMOption... vmOptions)
Creates a composite option of VMOptions.
static ProfileOption webProfile()
This method is deprecated. Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.
static OptionalCompositeOption when(boolean condition)
static OptionalCompositeOption when(OptionalCompositeOption.Condition condition)
static WorkingDirectoryOption workingDirectory(String directory)
static WrappedUrlProvisionOption wrappedBundle(String jarToWrapUrl)
static WrappedUrlProvisionOption wrappedBundle(UrlReference jarToWrapUrl)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Option allEquinoxVersions ()

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Creates a composite option of all EquinoxFrameworkOption versions (up to the date of Pax Exam release).

Returns
  • all equinox framework versions composite option

public static Option allFelixVersions ()

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Creates a composite option of all FelixFrameworkOption versions (up to the date of Pax Exam release).

Returns
  • all felix framework versions composite option

public static Option allFrameworks ()

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Creates a composite option of latest versions of Felix, Equinox and Knopflerfish.

Returns
  • latest versions of all frameworks composite option

public static Option allFrameworksVersions ()

Creates a composite option of all versions of Felix, Equinox and Knopflerfish.

Returns
  • all framework versions composite option

public static Option allKnopflerfishVersions ()

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Creates a composite option of all KnopflerfishFrameworkOption versions (up to the date of Pax Exam release).

Returns
  • all knopflerfish framework versions composite option

public static AutoWrapOption autoWrap ()

Creates a AutoWrapOption.

Returns
  • AutoWrapOption

public static Option bootClasspathLibraries (String... urls)

Creates a composite option of BootClasspathLibraryOptions.

Parameters
urls boot classpath library urls (cannot be null or containing null entries)
Returns
  • composite option of boot classpath options
Throws
IllegalArgumentException - If urls array is null or contains null entries

public static Option bootClasspathLibraries (BootClasspathLibraryOption... libraries)

Creates a composite option of BootClasspathLibraryOptions.

Parameters
libraries boot classpath library options
Returns
  • composite option of boot classpath library options

public static BootClasspathLibraryOption bootClasspathLibrary (String libraryUrl)

Parameters
libraryUrl boot classpath library url
Returns
  • boot classpath option

public static BootClasspathLibraryOption bootClasspathLibrary (UrlReference libraryUrl)

Parameters
libraryUrl boot classpath library url
Returns
  • boot classpath option

public static BootDelegationOption bootDelegationPackage (String pkg)

Parameters
pkg boot delegation package
Returns
  • boot delegation package option

public static Option bootDelegationPackages (String... packages)

Creates a composite option of BootDelegationOptions.

Parameters
packages boot delegation packages (cannot be null or containing null entries)
Returns
  • composite option of boot delegation package options
Throws
IllegalArgumentException - If urls array is null or contains null entries

public static Option bootDelegationPackages (BootDelegationOption... packages)

Creates a composite option of BootDelegationOptions.

Parameters
packages boot delegation package options
Returns
  • composite option of boot delegation package options

public static UrlProvisionOption bundle (String url)

Parameters
url bundle url
Returns
  • url provisioning option

public static BundleStartLevelOption bundleStartLevel (int startLevel)

Parameters
startLevel initial bundle start level (must be bigger then zero)
Returns
  • bundle start level option

public static CleanCachesOption cleanCaches ()

Returns
  • clean caches option

public static CleanCachesOption cleanCaches (boolean value)

Returns
  • clean caches option

public static ProfileOption compendiumProfile ()

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Creates a Log Service ProfileOption (--profiles=compendium).

Returns
  • log profile option

public static Option composite (Option... options)

Convenience method (more to be used for a nice fluent api) for creating a composite option.

Parameters
options options
Returns
  • provided options

public static ProfileOption configProfile ()

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Creates a Configuration Admin Service ProfileOption (--profiles=config).

Returns
  • config profile option

public static CustomFrameworkOption customFramework (String baseFrameworkName, String definitionURL, String name)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
baseFrameworkName one of the frameworks supported by pax runner. Must match the framework you link to via #definitionURL
definitionURL url to a custom pax runner platform xml descriptor
name a custom name you give this combo (will show up in pax runner startup and error msg)
Returns
  • instance of CustomFrameworkOption

public static DebugClassLoadingOption debugClassLoading ()

Returns
  • system property option

public static ProfileOption dsProfile ()

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Creates a Declarative Service ProfileOption (--profiles=ds).

Returns
  • ds profile option

public static EasyMockBundlesOption easyMockBundles ()

Returns
  • easy mock bundles option

public static EquinoxFrameworkOption equinox ()

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Returns
  • equinox framework option

public static ExcludeDefaultRepositoriesOption excludeDefaultRepositories ()

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Returns
  • option

public static FelixFrameworkOption felix ()

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Returns
  • felix framework option

public static Option frameworkProperties (FrameworkPropertyOption... frameworkProperties)

Creates a composite option of FrameworkPropertyOptions.

Parameters
frameworkProperties framework property options
Returns
  • composite option of framework property options

public static FrameworkPropertyOption frameworkProperty (String key)

Parameters
key framework property key
Returns
  • framework property option

public static FrameworkStartLevelOption frameworkStartLevel (int startLevel)

Parameters
startLevel framework start level (must be bigger then zero)
Returns
  • framework start level option

public static Option frameworks (FrameworkOption... frameworks)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Creates a composite option of FrameworkOptions.

Parameters
frameworks framework options
Returns
  • composite option of framework options

public static JMockBundlesOption jmockBundles ()

Returns
  • jmock bundles option

public static CompositeOption junitBundles ()

Returns
  • junit bundles option

public static CleanCachesOption keepCaches ()

Returns
  • clean caches option

public static KnopflerfishFrameworkOption knopflerfish ()

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Returns
  • knopflerfish framework option

public static LocalRepositoryOption localRepository (String path)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
path localRepository path or url
Returns
  • localRepository option

public static ProfileOption logProfile ()

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Creates a Log Service ProfileOption (--profiles=log).

Returns
  • log profile option

public static MavenArtifactUrlReference maven ()

Returns
  • maven artifact url

public static MavenArtifactUrlReference maven (String groupId, String artifactId)

Convenience method (shorter) for referencing an maven artifact based on groupId/artifactId.

Parameters
groupId artifact group id
artifactId artifact id
Returns
  • maven artifact url

public static MavenArtifactUrlReference maven (String groupId, String artifactId, String version)

Convenience method (shorter) for referencing a maven artifact based on groupId/artifactId/version.

Parameters
groupId artifact group id
artifactId artifact id
version artifact version
Returns
  • maven artifact url

public static MavenArtifactProvisionOption mavenBundle ()

Returns
  • maven specific provisioning option

public static MavenArtifactProvisionOption mavenBundle (String groupId, String artifactId)

Convenience method (shorter) for adding a maven bundle based on groupId/artifactId.

Parameters
groupId artifact group id
artifactId artifact id
Returns
  • maven specific provisioning option

public static MavenArtifactProvisionOption mavenBundle (String groupId, String artifactId, String version)

Convenience method (shorter) for adding a maven bundle based on groupId/artifactId/version.

Parameters
groupId artifact group id
artifactId artifact id
version artifact version
Returns
  • maven specific provisioning option

public static MavenArtifactProvisionOption mavenBundle (MavenArtifactUrlReference artifact)

Convenience factory method for adding a maven bundle based on a meven artifact.

Parameters
artifact maven artifact
Returns
  • maven specific provisioning option

public static MavenPluginGeneratedConfigOption mavenConfiguration ()

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Returns
  • Args option with file written from paxexam plugin

public static MavenPluginGeneratedConfigOption mavenConfiguration (String url)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
url of configuration to be used
Returns
  • Args option with file written from paxexam plugin

public static MavenPluginGeneratedConfigOption mavenConfiguration (URL url)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
url of configuration to be used
Returns
  • Args option with file written from paxexam plugin

public static MockitoBundlesOption mockitoBundles ()

Returns
  • mockito bundles option

public static Option[] options (Option... options)

Convenience method (more to be used for a nice fluent api) for creating an array of options. It also expands the composite options.

Parameters
options to be used.
Returns
  • provided options, expanded
See Also

public static ProfileOption profile (String name)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Creates a ProfileOption by profile name.

Parameters
name profile name
Returns
  • profile option

public static ProfileOption profile (String name, String version)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Creates a ProfileOption by profile name and version.

Parameters
name profile name
version profile version
Returns
  • profile option

public static Option profiles (ProfileOption... profiles)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Creates a composite option of ProfileOption.

Parameters
profiles profile options
Returns
  • composite option of profiles options

public static Option provision (InputStream... streams)

Creates a composite option of ProvisionOptions. This is handy when bundles are built on the fly via TinyBundles.

Parameters
streams provision sources
Returns
  • composite option of provision options
Throws
IllegalArgumentException - If a problem occured while flushing streams

public static Option provision (String... urls)

Creates a composite option of ProvisionOptions.

Parameters
urls provision urls (cannot be null or containing null entries)
Returns
  • composite option of provision options
Throws
IllegalArgumentException - If urls array is null or contains null entries

public static Option provision (ProvisionOption...<?> urls)

Creates a composite option of ProvisionOptions.

Parameters
urls provision options
Returns
  • composite option of provision options

public static RawPaxRunnerOptionOption rawPaxRunnerOption (String option)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
option full Pax Runner option (including --)
Returns
  • a PaxRunner Option instance.

public static RawPaxRunnerOptionOption rawPaxRunnerOption (String key, String value)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
key option name (key)
value option value
Returns
  • a PaxRunner Option instance.

public static Option repositories (String... repositoryUrls)

Creates a composite option of RepositoryOptions.

Parameters
repositoryUrls Maven repository URLs
Returns
  • composite option of repository options
Throws
IllegalArgumentException - If urls array is null or contains null entries

public static Option repositories (RepositoryOption... repositoryOptions)

Creates a composite option of RepositoryOptions.

Parameters
repositoryOptions repository options
Returns
  • composite option of repository options

public static RepositoryOption repository (String repositoryUrl)

Creates a RepositoryOption.

Parameters
repositoryUrl repository url
Returns
  • repository option

public static RawScannerProvisionOption scan (String provisionSpec)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
provisionSpec raw provisioning spec
Returns
  • raw scanner option

public static BundleScannerProvisionOption scanBundle (String bundleUrl)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
bundleUrl url of the bundle to be scanned
Returns
  • bundle scanner option

public static BundleScannerProvisionOption scanBundle (UrlReference bundleUrl)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
bundleUrl url of the bundle to be scanned
Returns
  • bundle scanner option

public static CompositeScannerProvisionOption scanComposite (String fileUrl)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
fileUrl url of the file to be scanned
Returns
  • composite scanner option

public static CompositeScannerProvisionOption scanComposite (UrlReference fileUrl)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
fileUrl url of the file to be scanned
Returns
  • composite scanner option

public static DirScannerProvisionOption scanDir (String directory)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
directory directory to be scanned
Returns
  • directory scanner option

public static FeaturesScannerProvisionOption scanFeatures (String repositoryUrl, String... features)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
repositoryUrl url of features respository to be scanned
features features to be scanned
Returns
  • file scanner option

public static FeaturesScannerProvisionOption scanFeatures (UrlReference repositoryUrl, String... features)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
repositoryUrl url of features respository to be scanned
features features to be scanned
Returns
  • file scanner option

public static FileScannerProvisionOption scanFile (String fileUrl)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
fileUrl url of the file to be scanned
Returns
  • file scanner option

public static FileScannerProvisionOption scanFile (UrlReference fileUrl)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
fileUrl url of the file to be scanned
Returns
  • file scanner option

public static PomScannerProvisionOption scanPom ()

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Returns
  • pom scanner option

public static PomScannerProvisionOption scanPom (String url)

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Parameters
url to pom
Returns
  • pom scanner option

public static Option serverMode ()

Creates a CleanCachesOption.value(false) + workingDirectory(folder) options.

Returns
  • options set so it should just be used to kick a single process. Not for test runners. (they would interfere).

public static UrlProvisionOption streamBundle (InputStream stream)

public static SystemPackageOption systemPackage (String pkg)

Parameters
pkg system package
Returns
  • system package option

public static Option systemPackages (String... packages)

Creates a composite option of SystemPackageOptions.

Parameters
packages system packages (cannot be null or containing null entries)
Returns
  • composite option of system package options
Throws
IllegalArgumentException - If urls array is null or contains null entries

public static Option systemPackages (SystemPackageOption... packages)

Creates a composite option of SystemPackageOptions.

Parameters
packages system package options
Returns
  • composite option of system package options

public static Option systemProperties (SystemPropertyOption... systemProperties)

Creates a composite option of SystemPropertyOptions.

Parameters
systemProperties system property options
Returns
  • composite option of system property options

public static SystemPropertyOption systemProperty (String key)

Parameters
key system property key
Returns
  • framework property option

public static TimeoutOption systemTimeout (long timeoutInMillis)

Creates a TimeoutOption for a number of millis.

Parameters
timeoutInMillis timeout in millis
Returns
  • timeout option

public static UrlProvisionOption url (String url)

Parameters
url url as a string
Returns
  • url reference

public static VMOption vmOption (String vmOption)

Creates a VMOption.

Parameters
vmOption virtual machine option
Returns
  • virtual machine option

public static Option vmOptions (String... vmOptions)

Creates a composite option of VMOptions.

Parameters
vmOptions virtual machine options (cannot be null or containing null entries)
Returns
  • composite option of virtual machine options
Throws
IllegalArgumentException - If urls array is null or contains null entries

public static Option vmOptions (VMOption... vmOptions)

Creates a composite option of VMOptions.

Parameters
vmOptions virtual machine options
Returns
  • composite option of virtual machine options

public static ProfileOption webProfile ()

This method is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Creates a Http Service ProfileOption (--profiles=web).

Returns
  • web profile option

public static OptionalCompositeOption when (boolean condition)

Parameters
condition boolean condition to evaluate
Returns
  • optional composite option

public static OptionalCompositeOption when (OptionalCompositeOption.Condition condition)

Parameters
condition condition to evaluate
Returns
  • optional composite option

public static WorkingDirectoryOption workingDirectory (String directory)

Parameters
directory url of the bundle to be scanned
Returns
  • working directory option

public static WrappedUrlProvisionOption wrappedBundle (String jarToWrapUrl)

Parameters
jarToWrapUrl url of jar to be wrapped
Returns
  • wrap specific provisioning option

public static WrappedUrlProvisionOption wrappedBundle (UrlReference jarToWrapUrl)

Parameters
jarToWrapUrl url of jar to be wrapped
Returns
  • wrap specific provisioning option