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 |
---|---|
void |
doesNotExist() |
void |
exists() |
void |
hasContents(byte[] expectedContents) |
void |
hasName(java.lang.String name) |
void |
isDirectory() |
void |
isExecutable() |
void |
isFile() |
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<PathSubject,java.nio.file.Path> FACTORY
public PathSubject(com.google.common.truth.FailureStrategy failureStrategy, java.nio.file.Path subject)
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.IOException