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

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

public static class ArchiveFixture.FileFixture
extends ArchiveFixture.AbstractFixture

Simple fixture for text files.


Constructor Summary
protected ArchiveFixture.FileFixture(ArchiveFixture.ZipFixture parent)
           
 
Method Summary
 ArchiveFixture.FileFixture line(String line)
          Add a line to the file fixture.
 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.FileFixture

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

line

public ArchiveFixture.FileFixture line(String line)
Add a line to the file fixture. The EOL character is added automatically.

Parameters:
line -
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.