public class PathSubject extends com.google.common.truth.Subject<PathSubject,java.nio.file.Path>
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.truth.SubjectFactory<PathSubject,java.nio.file.Path> |
FACTORY |
| Constructor and Description |
|---|
PathSubject(com.google.common.truth.FailureStrategy failureStrategy,
java.nio.file.Path subject) |
| Modifier and Type | Method and Description |
|---|---|
static PathSubject |
assertThat(java.io.File file) |
static PathSubject |
assertThat(java.nio.file.Path path) |
void |
doesNotExist() |
void |
exists() |
void |
hasContents(byte[] expectedContents) |
void |
hasContents(java.lang.String... expectedContents) |
void |
hasName(java.lang.String name) |
void |
isDirectory() |
void |
isExecutable() |
void |
isFile() |
void |
isNewerThan(java.nio.file.attribute.FileTime expectedTime) |
void |
wasModifiedAt(java.nio.file.attribute.FileTime expectedTime) |
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<PathSubject,java.nio.file.Path> FACTORY
public PathSubject(com.google.common.truth.FailureStrategy failureStrategy,
java.nio.file.Path subject)
public static PathSubject assertThat(@Nullable java.nio.file.Path path)
public static PathSubject assertThat(@Nullable java.io.File file)
public void hasName(java.lang.String name)
public void exists()
public void doesNotExist()
public void isFile()
public void isDirectory()
public void isExecutable()
public void hasContents(byte[] expectedContents)
throws java.io.IOException
java.io.IOExceptionpublic void hasContents(java.lang.String... expectedContents)
throws java.io.IOException
java.io.IOExceptionpublic void wasModifiedAt(@NonNull
java.nio.file.attribute.FileTime expectedTime)
throws java.io.IOException
java.io.IOExceptionpublic void isNewerThan(@NonNull
java.nio.file.attribute.FileTime expectedTime)
throws java.io.IOException
java.io.IOException