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

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

Introduction

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

Usage

From source file com.pkware.truth.android.view.ViewPropertyAnimatorSubject.java

/**
 * Propositions for {@link ViewPropertyAnimator} subjects.
 */
public class ViewPropertyAnimatorSubject extends Subject<ViewPropertyAnimatorSubject, ViewPropertyAnimator> {
    protected ViewPropertyAnimatorSubject(FailureStrategy failureStrategy, ViewPropertyAnimator subject) {
        super(failureStrategy, subject);

From source file com.google.devtools.build.skyframe.EvaluationResultSubject.java

/**
 * {@link Subject} for {@link EvaluationResult}. Please add to this class if you need more
 * functionality!
 */
public class EvaluationResultSubject extends Subject<EvaluationResultSubject, EvaluationResult<?>> {
    public EvaluationResultSubject(FailureStrategy failureStrategy, EvaluationResult<?> evaluationResult) {

From source file com.pkware.truth.android.util.LongSparseArraySubject.java

/**
 * Propositions for {@link LongSparseArray} subjects.
 */
@TargetApi(JELLY_BEAN)
public class LongSparseArraySubject extends Subject<LongSparseArraySubject, LongSparseArray> {
    protected LongSparseArraySubject(FailureStrategy failureStrategy, LongSparseArray subject) {

From source file com.pkware.truth.android.content.AbstractSharedPreferencesSubject.java

public abstract class AbstractSharedPreferencesSubject<S extends AbstractSharedPreferencesSubject<S, T>, T extends SharedPreferences>
        extends Subject<S, T> {
    protected AbstractSharedPreferencesSubject(FailureStrategy failureStrategy, T subject) {
        super(failureStrategy, subject);
    }

From source file com.pkware.truth.android.util.SparseIntArraySubject.java

/**
 * Propositions for {@link SparseIntArray} subjects.
 */
@TargetApi(JELLY_BEAN_MR2)
public class SparseIntArraySubject extends Subject<SparseIntArraySubject, SparseIntArray> {
    protected SparseIntArraySubject(FailureStrategy failureStrategy, SparseIntArray subject) {

From source file com.pkware.truth.android.util.SparseLongArraySubject.java

/**
 * Propositions for {@link SparseLongArray} subjects.
 */
@TargetApi(JELLY_BEAN_MR2)
public class SparseLongArraySubject extends Subject<SparseLongArraySubject, SparseLongArray> {
    protected SparseLongArraySubject(FailureStrategy failureStrategy, SparseLongArray subject) {

From source file com.google.gerrit.truth.OptionalSubject.java

public class OptionalSubject<S extends Subject<S, ? super T>, T>
        extends Subject<OptionalSubject<S, T>, Optional<T>> {

    private final Function<? super T, ? extends S> valueAssertThatFunction;

    public static <S extends Subject<S, ? super T>, T> OptionalSubject<S, T> assertThat(Optional<T> optional,

From source file com.pkware.truth.android.graphics.NinePatchSubject.java

/**
 * Propositions for {@link NinePatch} subjects.
 */
public class NinePatchSubject extends Subject<NinePatchSubject, NinePatch> {
    protected NinePatchSubject(FailureStrategy failureStrategy, NinePatch subject) {
        super(failureStrategy, subject);

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

public class MavenCoordinatesSubject extends Subject<MavenCoordinatesSubject, MavenCoordinates> {

    static class Factory extends SubjectFactory<MavenCoordinatesSubject, MavenCoordinates> {
        @NonNull
        public static Factory get() {
            return new Factory();

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

/** Utility methods for asserting things about logging {@link Handler} instances. */
public class LogsSubject extends Subject<LogsSubject, TestLogHandler> {

    /** A factory for instances of this subject. */
    private static class SubjectFactory extends ReflectiveSubjectFactory<TestLogHandler, LogsSubject> {
    }