public final class JavaFileObjectSubject extends com.google.common.truth.Subject<JavaFileObjectSubject,JavaFileObject>
JavaFileObjects.| Modifier and Type | Method and Description |
|---|---|
protected String |
actualCustomStringRepresentation() |
static JavaFileObjectSubject |
assertThat(JavaFileObject actual)
Starts making assertions about a
JavaFileObject. |
com.google.common.truth.StringSubject |
contentsAsString(Charset charset)
Returns a
StringSubject that makes assertions about the contents of the actual file as
a string. |
com.google.common.truth.StringSubject |
contentsAsUtf8String()
Returns a
StringSubject that makes assertions about the contents of the actual file as
a UTF-8 string. |
void |
hasContents(com.google.common.io.ByteSource expected)
Asserts that the actual file's contents are equal to
expected. |
void |
hasSourceEquivalentTo(JavaFileObject expectedSource)
Asserts that the actual file is a source file with contents equivalent to
expectedSource. |
void |
isEqualTo(Object other)
If
other is a JavaFileObject, tests that their contents are equal. |
static com.google.common.truth.SubjectFactory<JavaFileObjectSubject,JavaFileObject> |
javaFileObjects()
Returns a
SubjectFactory for JavaFileObjectSubjects. |
actual, actualAsString, check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hashCode, internalCustomName, isAnyOf, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, namedpublic static com.google.common.truth.SubjectFactory<JavaFileObjectSubject,JavaFileObject> javaFileObjects()
SubjectFactory for JavaFileObjectSubjects.public static JavaFileObjectSubject assertThat(JavaFileObject actual)
JavaFileObject.protected String actualCustomStringRepresentation()
actualCustomStringRepresentation in class com.google.common.truth.Subject<JavaFileObjectSubject,JavaFileObject>public void isEqualTo(@Nullable Object other)
other is a JavaFileObject, tests that their contents are equal. Otherwise
uses Object.equals(Object).isEqualTo in class com.google.common.truth.Subject<JavaFileObjectSubject,JavaFileObject>public void hasContents(com.google.common.io.ByteSource expected)
expected.public com.google.common.truth.StringSubject contentsAsString(Charset charset)
StringSubject that makes assertions about the contents of the actual file as
a string.public com.google.common.truth.StringSubject contentsAsUtf8String()
StringSubject that makes assertions about the contents of the actual file as
a UTF-8 string.public void hasSourceEquivalentTo(JavaFileObject expectedSource)
expectedSource.Copyright © 2013-2017. All Rights Reserved.