public class ZipFileSubject extends AbstractZipSubject<ZipFileSubject,Zip>
Modifier and Type | Field and Description |
---|---|
static com.google.common.truth.SubjectFactory<ZipFileSubject,Zip> |
FACTORY |
Constructor and Description |
---|
ZipFileSubject(com.google.common.truth.FailureStrategy failureStrategy,
Zip subject) |
Modifier and Type | Method and Description |
---|---|
void |
contains(java.lang.String path)
Asserts the zip file contains a file with the specified path.
|
void |
doesNotContain(java.lang.String path)
Asserts the zip file does not contains a file with the specified path.
|
close, containsFileWithContent, containsFileWithContent, containsFileWithMatch, containsFileWithoutContent, doesNotExist, entries, exists, extractContentAsBytes, extractContentAsString
check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hashCode, internalCustomName, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, named
public static final com.google.common.truth.SubjectFactory<ZipFileSubject,Zip> FACTORY
public ZipFileSubject(@NonNull com.google.common.truth.FailureStrategy failureStrategy, @NonNull Zip subject)
public void contains(@NonNull java.lang.String path) throws java.io.IOException
AbstractZipSubject
contains
in class AbstractZipSubject<ZipFileSubject,Zip>
java.io.IOException
public void doesNotContain(@NonNull java.lang.String path) throws java.io.IOException
AbstractZipSubject
doesNotContain
in class AbstractZipSubject<ZipFileSubject,Zip>
java.io.IOException