List of usage examples for com.google.common.truth SubjectFactory subclass-usage
From source file org.truth0.subjects.SubjectFactory.java
/** * @deprecated use {@link com.google.common.truth.SubjectFactory}. */ @Deprecated public abstract class SubjectFactory<S extends com.google.common.truth.Subject<S, T>, T> extends com.google.common.truth.SubjectFactory<S, T> {
From source file com.google.testing.compile.JavaFileObjectSubjectFactory.java
/** A factory for {@link JavaFileObjectSubject}s. */ final class JavaFileObjectSubjectFactory extends SubjectFactory<JavaFileObjectSubject, JavaFileObject> { @Override public JavaFileObjectSubject getSubject(FailureStrategy fs, JavaFileObject that) { return new JavaFileObjectSubject(fs, that);
From source file com.google.testing.compile.CompilationSubjectFactory.java
/** A {@link Truth} subject factory for a {@link Compilation}. */ final class CompilationSubjectFactory extends SubjectFactory<CompilationSubject, Compilation> { @Override public CompilationSubject getSubject(FailureStrategy fs, Compilation that) { return new CompilationSubject(fs, that);
From source file com.google.testing.compile.JavaSourceSubjectFactory.java
/**
* A <a href="https://github.com/truth0/truth">Truth</a> {@link SubjectFactory} similar to
* {@link JavaSourcesSubjectFactory}, but for working with single source files.
*
* @author Gregory Kick
*/
From source file com.google.testing.compile.JavaSourcesSubjectFactory.java
/**
* A <a href="https://github.com/truth0/truth">Truth</a> {@link SubjectFactory} for creating
* {@link JavaSourcesSubject} instances.
*
* @author Gregory Kick
*/
From source file com.google.devtools.build.skyframe.NodeEntrySubjectFactory.java
/** {@link SubjectFactory} for {@link NodeEntry} objects, providing {@link NodeEntrySubject}s. */ public class NodeEntrySubjectFactory extends SubjectFactory<NodeEntrySubject, NodeEntry> { public static NodeEntrySubject assertThatNodeEntry(NodeEntry nodeEntry) { return Truth.assertAbout(new NodeEntrySubjectFactory()).that(nodeEntry); }
From source file com.google.devtools.build.skyframe.ErrorInfoSubjectFactory.java
/** {@link SubjectFactory} for {@link ErrorInfo} objects, providing {@link ErrorInfoSubject}s. */ public class ErrorInfoSubjectFactory extends SubjectFactory<ErrorInfoSubject, ErrorInfo> { public static ErrorInfoSubject assertThatErrorInfo(ErrorInfo errorInfo) { return Truth.assertAbout(new ErrorInfoSubjectFactory()).that(errorInfo); }
From source file com.google.devtools.build.skyframe.CycleInfoSubjectFactory.java
/** {@link SubjectFactory} for {@link CycleInfo}, providing {@link CycleInfoSubject}. */ public class CycleInfoSubjectFactory extends SubjectFactory<CycleInfoSubject, CycleInfo> { public static CycleInfoSubject assertThat(CycleInfo cycleInfo) { return Truth.assertAbout(new CycleInfoSubjectFactory()).that(cycleInfo); }
From source file com.google.devtools.build.skyframe.EvaluationResultSubjectFactory.java
/** * {@link SubjectFactory} for {@link EvaluationResult} objects, providing * {@link EvaluationResultSubject}s. */ public class EvaluationResultSubjectFactory extends SubjectFactory<EvaluationResultSubject, EvaluationResult<?>> { public static EvaluationResultSubject assertThatEvaluationResult(EvaluationResult<?> evaluationResult) {
From source file com.google.auto.value.extension.memoized.MemoizedMethodSubjectFactory.java
final class MemoizedMethodSubjectFactory extends SubjectFactory<MemoizedMethodSubject, String> { static MemoizedMethodSubjectFactory memoizeMethod() { return new MemoizedMethodSubjectFactory(); }