public class TarArchiveAssertionHelper
extends java.lang.Object
| Constructor and Description |
|---|
TarArchiveAssertionHelper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
assertTarArchiveEquals(java.util.List<org.apache.commons.compress.archivers.tar.TarArchiveEntry> firstArchive,
java.util.List<org.apache.commons.compress.archivers.tar.TarArchiveEntry> secondArchive) |
private void |
blockDeviceEquals(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
org.apache.commons.compress.archivers.tar.TarArchiveEntry matchedEntry) |
private void |
characterDeviceEquals(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
org.apache.commons.compress.archivers.tar.TarArchiveEntry matchedEntry) |
private void |
directoryEquals(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
org.apache.commons.compress.archivers.tar.TarArchiveEntry matchedEntry) |
private boolean |
equals(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
org.apache.commons.compress.archivers.tar.TarArchiveEntry matchedEntry) |
private boolean |
fileContentEquals(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
org.apache.commons.compress.archivers.tar.TarArchiveEntry matchedEntry) |
private void |
fileEquals(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
org.apache.commons.compress.archivers.tar.TarArchiveEntry matchedEntry) |
private org.apache.commons.compress.archivers.tar.TarArchiveEntry |
matchEntrysByName(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
java.util.List<org.apache.commons.compress.archivers.tar.TarArchiveEntry> archive) |
private void |
symbolicLinkequals(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
org.apache.commons.compress.archivers.tar.TarArchiveEntry matchedEntry) |
public boolean assertTarArchiveEquals(java.util.List<org.apache.commons.compress.archivers.tar.TarArchiveEntry> firstArchive,
java.util.List<org.apache.commons.compress.archivers.tar.TarArchiveEntry> secondArchive)
firstArchive - is a list that represents a tar-archive by its entriessecondArchive - is a list that represents a tar-archive by its entriesprivate boolean equals(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
org.apache.commons.compress.archivers.tar.TarArchiveEntry matchedEntry)
throws EntryNotEqualException
entry - to comparematchedEntry - second entry to compareEntryNotEqualException - if the entries are not assumed equal by one of the specific subroutinesprivate void characterDeviceEquals(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
org.apache.commons.compress.archivers.tar.TarArchiveEntry matchedEntry)
throws EntryNotEqualException
entry - to be compared tomatchedEntry - second entry to be compared toEntryNotEqualException - if the characterDevices do not equal in: DevMinor, DevMajor and Modeprivate void blockDeviceEquals(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
org.apache.commons.compress.archivers.tar.TarArchiveEntry matchedEntry)
throws EntryNotEqualException
entry - to be compared tomatchedEntry - second entry to be compared toEntryNotEqualException - if the blockDevices are not equal in: DevMinor, DevMajor and Modeprivate void symbolicLinkequals(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
org.apache.commons.compress.archivers.tar.TarArchiveEntry matchedEntry)
throws EntryNotEqualException
entry - to be compared tomatchedEntry - second entry to be compared toEntryNotEqualException - if the two links are not equalprivate void fileEquals(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
org.apache.commons.compress.archivers.tar.TarArchiveEntry matchedEntry)
throws EntryNotEqualException
entry - to be compared tomatchedEntry - second entry to be compared toEntryNotEqualException - if the files mode and content are not equal to one anotherprivate boolean fileContentEquals(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
org.apache.commons.compress.archivers.tar.TarArchiveEntry matchedEntry)
entry - to be compared tomatchedEntry - second entry to be compared toprivate void directoryEquals(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
org.apache.commons.compress.archivers.tar.TarArchiveEntry matchedEntry)
throws EntryNotEqualException
entry - to be compared tomatchedEntry - second entry to be compared toEntryNotEqualException - if the directories have not the same modeprivate org.apache.commons.compress.archivers.tar.TarArchiveEntry matchEntrysByName(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry,
java.util.List<org.apache.commons.compress.archivers.tar.TarArchiveEntry> archive)
throws NoMatchFoundException
entry - with name that needs to be matchedarchive - list in witch a matching entry is searched forNoMatchFoundException - if no entry with a matching name in the archive list is found