public class FileSubject extends com.google.common.truth.Subject<FileSubject,java.io.File>
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.truth.SubjectFactory<FileSubject,java.io.File> |
FACTORY |
| Constructor and Description |
|---|
FileSubject(com.google.common.truth.FailureStrategy failureStrategy,
java.io.File subject) |
| Modifier and Type | Method and Description |
|---|---|
void |
contains(byte[] expectedContents) |
void |
containsAllOf(java.lang.String... expectedContents) |
void |
contentWithUnixLineSeparatorsIsExactly(java.lang.String expected) |
void |
doesNotExist() |
void |
exists() |
void |
hasContents(java.lang.String expectedContents) |
void |
hasName(java.lang.String name) |
void |
isDirectory() |
void |
isFile() |
void |
isNewerThan(java.io.File other) |
void |
isNewerThan(long timestamp) |
void |
wasModifiedAt(long timestamp) |
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, namedpublic static final com.google.common.truth.SubjectFactory<FileSubject,java.io.File> FACTORY
public FileSubject(com.google.common.truth.FailureStrategy failureStrategy,
java.io.File subject)
public void hasName(java.lang.String name)
public void exists()
public void doesNotExist()
public void isFile()
public void isDirectory()
public void containsAllOf(java.lang.String... expectedContents)
public void contains(byte[] expectedContents)
public void hasContents(java.lang.String expectedContents)
public void wasModifiedAt(long timestamp)
public void isNewerThan(long timestamp)
public void isNewerThan(java.io.File other)
public void contentWithUnixLineSeparatorsIsExactly(java.lang.String expected)
throws java.io.IOException
java.io.IOException