public class

CompositeCustomizer

extends Customizer
java.lang.Object
   ↳ org.ops4j.pax.exam.Customizer
     ↳ org.ops4j.pax.exam.CompositeCustomizer

Class Overview

Composite of Customizers. Used to treat many Customizers as a single Customizer.

Summary

Public Constructors
CompositeCustomizer(Customizer[] customizers)
Public Methods
void customizeEnvironment(File workingFolder)
Callback method that can contain steps to finally change/set up the working environment.
InputStream customizeTestProbe(InputStream testProbe)
Callback that allow to customize the ready built regression probe.
[Expand]
Inherited Methods
From class org.ops4j.pax.exam.Customizer
From class java.lang.Object

Public Constructors

public CompositeCustomizer (Customizer[] customizers)

Public Methods

public void customizeEnvironment (File workingFolder)

Callback method that can contain steps to finally change/set up the working environment. It is being called just before the OSGi platform of choice boots. An exception at this point will make exam stop and not running the regression. (actually, the regression will fail)

Parameters
workingFolder final workingfolder (new File(".")) of your osgi setup. Be careful there, the platform may not start if you (for example) delete things in there.

public InputStream customizeTestProbe (InputStream testProbe)

Callback that allow to customize the ready built regression probe. Examples are: - need to obfuscate bytecode - need to add checksums - want to share/copy the probe somewhere You can use the Tinybundles library to easily change bits of your bundle on the fly.

Parameters
testProbe stream of the probe
Returns
  • probe to be installed instead of probe.
Throws
Exception