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

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

Introduction

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

Prototype

SubjectFactory

Source Link

Usage

From source file:com.pkware.truth.android.view.KeyEventSubject.java

public static SubjectFactory<KeyEventSubject, KeyEvent> type() {
    return new SubjectFactory<KeyEventSubject, KeyEvent>() {
        @Override/*  w w w.  ja  v a  2 s.co m*/
        public KeyEventSubject getSubject(FailureStrategy fs, KeyEvent that) {
            return new KeyEventSubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.view.animation.AnimationSetSubject.java

public static SubjectFactory<AnimationSetSubject, AnimationSet> type() {
    return new SubjectFactory<AnimationSetSubject, AnimationSet>() {
        @Override/*from w  w w. jav  a 2s .  c  o  m*/
        public AnimationSetSubject getSubject(FailureStrategy fs, AnimationSet that) {
            return new AnimationSetSubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.app.ListActivitySubject.java

public static SubjectFactory<ListActivitySubject, ListActivity> type() {
    return new SubjectFactory<ListActivitySubject, ListActivity>() {
        @Override/*from  w w w  .  j a  v  a2 s.c o  m*/
        public ListActivitySubject getSubject(FailureStrategy fs, ListActivity that) {
            return new ListActivitySubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.widget.DatePickerSubject.java

public static SubjectFactory<DatePickerSubject, DatePicker> type() {
    return new SubjectFactory<DatePickerSubject, DatePicker>() {
        @Override/*from   ww  w .  ja v  a 2  s . c o m*/
        public DatePickerSubject getSubject(FailureStrategy fs, DatePicker that) {
            return new DatePickerSubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.widget.LinearLayoutSubject.java

public static SubjectFactory<LinearLayoutSubject, LinearLayout> type() {
    return new SubjectFactory<LinearLayoutSubject, LinearLayout>() {
        @Override/*from w w  w .  j a v  a 2  s  .c om*/
        public LinearLayoutSubject getSubject(FailureStrategy fs, LinearLayout that) {
            return new LinearLayoutSubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.widget.NumberPickerSubject.java

public static SubjectFactory<NumberPickerSubject, NumberPicker> type() {
    return new SubjectFactory<NumberPickerSubject, NumberPicker>() {
        @Override/*ww w  .  j  a va2s . c o  m*/
        public NumberPickerSubject getSubject(FailureStrategy fs, NumberPicker that) {
            return new NumberPickerSubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.graphics.drawable.ColorDrawableSubject.java

public static SubjectFactory<ColorDrawableSubject, ColorDrawable> type() {
    return new SubjectFactory<ColorDrawableSubject, ColorDrawable>() {
        @Override//from w ww.  j av a 2  s  . co m
        public ColorDrawableSubject getSubject(FailureStrategy fs, ColorDrawable that) {
            return new ColorDrawableSubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.hardware.SensorEventSubject.java

public static SubjectFactory<SensorEventSubject, SensorEvent> type() {
    return new SubjectFactory<SensorEventSubject, SensorEvent>() {
        @Override//from ww  w.j  a  va 2 s.  c om
        public SensorEventSubject getSubject(FailureStrategy fs, SensorEvent that) {
            return new SensorEventSubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.app.ProgressDialogSubject.java

public static SubjectFactory<ProgressDialogSubject, ProgressDialog> type() {
    return new SubjectFactory<ProgressDialogSubject, ProgressDialog>() {
        @Override/*from   w w w . j a v  a  2  s . com*/
        public ProgressDialogSubject getSubject(FailureStrategy fs, ProgressDialog that) {
            return new ProgressDialogSubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.graphics.PathMeasureSubject.java

public static SubjectFactory<PathMeasureSubject, PathMeasure> type() {
    return new SubjectFactory<PathMeasureSubject, PathMeasure>() {
        @Override/*from w w  w  .j  ava2s . c o  m*/
        public PathMeasureSubject getSubject(FailureStrategy fs, PathMeasure that) {
            return new PathMeasureSubject(fs, that);
        }
    };
}