org.apache.aries.unittest.fixture
Class ArchiveFixture.ManifestFixture

java.lang.Object
  extended by org.apache.aries.unittest.fixture.ArchiveFixture.AbstractFixture
      extended by org.apache.aries.unittest.fixture.ArchiveFixture.ManifestFixture
All Implemented Interfaces:
ArchiveFixture.Fixture
Enclosing class:
ArchiveFixture

public static class ArchiveFixture.ManifestFixture
extends ArchiveFixture.AbstractFixture

Fixture for (bundle) manifests. By default, they contain the lines Manifest-Version: 1 Bundle-ManifestVersion: 2


Constructor Summary
protected ArchiveFixture.ManifestFixture(ArchiveFixture.ZipFixture parent)
           
 
Method Summary
 ArchiveFixture.ManifestFixture attribute(String name, String value)
          Add a custom attribute to the manifest.
protected  Manifest getManifest()
           
 ArchiveFixture.ManifestFixture symbolicName(String name)
          Set the symbolic name of the bundle
 ArchiveFixture.ManifestFixture version(String version)
          Set the version of the bundle
 void writeOut(OutputStream out)
          Write the physical representation of the fixture to the given OutputStream
 
Methods inherited from class org.apache.aries.unittest.fixture.ArchiveFixture.AbstractFixture
end
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveFixture.ManifestFixture

protected ArchiveFixture.ManifestFixture(ArchiveFixture.ZipFixture parent)
Method Detail

getManifest

protected Manifest getManifest()

symbolicName

public ArchiveFixture.ManifestFixture symbolicName(String name)
Set the symbolic name of the bundle

Parameters:
name -
Returns:

version

public ArchiveFixture.ManifestFixture version(String version)
Set the version of the bundle

Parameters:
version -
Returns:

attribute

public ArchiveFixture.ManifestFixture attribute(String name,
                                                String value)
Add a custom attribute to the manifest. Use the more specific methods for symbolic name and version.

Parameters:
name -
value -
Returns:

writeOut

public void writeOut(OutputStream out)
              throws IOException
Description copied from interface: ArchiveFixture.Fixture
Write the physical representation of the fixture to the given OutputStream

Throws:
IOException


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.