public class TARArchiveVisitorTest
extends java.lang.Object
TARArchiveComponentVisitor.| Modifier and Type | Field and Description |
|---|---|
private TarArchiveAssertionHelper |
assertionHelper
the assertion helper to compare the archives.
|
private java.io.File |
outputArchive
the file where the created archives are stored.
|
private TarArchiveReader |
reader
the reader to read the archives.
|
private ArchiveComponentVisitor |
visitor
the visitor to create the TAR archives.
|
| Constructor and Description |
|---|
TARArchiveVisitorTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Sets up the visitor before each test case.
|
static junit.framework.Test |
suite()
Necessary for "ant".
|
void |
testArchiveDirectory()
test case, which creates an archive containing one directory.
|
void |
testArchiveFile()
test case which creates an archive containing a txt-file.
|
void |
testArchiveWithDirectoryAndTxtFile()
Creates an archive which is similar to TestConstants.TAR_ARCHIVE_TO_COMPARE_1.
|
void |
testFileInDirectory()
Creates an archive, that contains a file in a sub directory in a directory.
|
void |
testFileInDirectory2()
Creates an archive, that contains directory and a file.
|
void |
testfullArchive()
Creates an archive, which is similar to TestConstants.TAR_ARCHIVE_TO_COMPARE_2.
|
void |
testfullArchive2()
Creates an archive, which is similar to TestConstants.TAR_ARCHIVE_TO_COMPARE_5.
|
void |
testNode()
test case creating an archive containing an dev-node.
|
void |
testSymlink()
test case creating an archive with a symlink.
|
private ArchiveComponentVisitor visitor
private java.io.File outputArchive
private TarArchiveReader reader
private TarArchiveAssertionHelper assertionHelper
public static junit.framework.Test suite()
public void setUp()
throws org.apache.commons.compress.archivers.ArchiveException,
java.io.IOException
org.apache.commons.compress.archivers.ArchiveExceptionjava.io.IOExceptionpublic void testArchiveWithDirectoryAndTxtFile()
throws java.io.IOException,
IllegalDeviceTypeException
java.io.IOExceptionIllegalDeviceTypeExceptionpublic void testfullArchive()
throws java.io.IOException,
IllegalDeviceTypeException
java.io.IOExceptionIllegalDeviceTypeExceptionpublic void testfullArchive2()
throws java.io.IOException,
IllegalDeviceTypeException
java.io.IOExceptionIllegalDeviceTypeExceptionpublic void testFileInDirectory()
throws java.io.IOException,
IllegalDeviceTypeException
TestConstants.TAR_ARCHIVE_TO_COMPARE_3java.io.IOExceptionIllegalDeviceTypeExceptionjava.io.FileNotFoundExceptionpublic void testFileInDirectory2()
throws java.io.IOException,
IllegalDeviceTypeException
TestConstants.TAR_ARCHIVE_TO_COMPARE_4java.io.IOExceptionIllegalDeviceTypeExceptionpublic void testArchiveFile()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundExceptionjava.io.IOExceptionpublic void testArchiveDirectory()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundExceptionjava.io.IOExceptionpublic void testSymlink()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.IOExceptionjava.io.FileNotFoundExceptionpublic void testNode()
throws java.io.IOException,
IllegalDeviceTypeException
java.io.IOExceptionIllegalDeviceTypeException