Example usage for com.google.common.truth SubjectFactory subclass-usage

List of usage examples for com.google.common.truth SubjectFactory subclass-usage

Introduction

In this page you can find the example usage for com.google.common.truth SubjectFactory subclass-usage.

Usage

From source file com.android.build.gradle.integration.common.truth.FileSubjectFactory.java

/**
 * Factory to add truth support for File.
 */
public class FileSubjectFactory extends SubjectFactory<FileSubject, File> {
    public static FileSubjectFactory factory() {
        return new FileSubjectFactory();

From source file com.android.build.gradle.integration.common.truth.GradleOutputFileSubjectFactory.java

/**
 * Factory to add truth support for IncrementalFile.
 */
public class GradleOutputFileSubjectFactory extends SubjectFactory<GradleOutputFileSubject, File> {
    private final String gradleOutput;

From source file com.android.build.gradle.integration.common.truth.IncrementalFileSubjectFactory.java

/**
 * Factory to add truth support for IncrementalFile.
 */
public class IncrementalFileSubjectFactory extends SubjectFactory<IncrementalFileSubject, File> {
    private final String gradleOutput;

From source file google.registry.testing.ReflectiveSubjectFactory.java

/** Helper to reduce boilerplate in making new Truth subject classes. */
public class ReflectiveSubjectFactory<T, S extends Subject<S, T>> extends SubjectFactory<S, T> {
    @Override
    public S getSubject(FailureStrategy strategy, T subject) {
        try {
            Class<S> sType = new TypeInstantiator<S>(getClass()) {

From source file com.google.devtools.build.lib.testutil.EventIterableSubjectFactory.java

/**
 * {@link SubjectFactory} for {@code Iterable<Event>} objects, providing {@link IterableSubject}s of
 * {@link String} objects for easy asserting.
 */
public class EventIterableSubjectFactory extends SubjectFactory<EventIterableSubject, Iterable<Event>> {
    public static IterableSubject assertThatEvents(Iterable<Event> events) {

From source file com.android.build.gradle.integration.common.truth.GradleOutputTaskSubjectFactory.java

/**
 * Factory to create GradleOutputTaskSubject.
 */
public class GradleOutputTaskSubjectFactory extends SubjectFactory<GradleOutputTaskSubject, String> {

    @NonNull