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.location.GpsSatelliteSubject.java

public static SubjectFactory<GpsSatelliteSubject, GpsSatellite> type() {
    return new SubjectFactory<GpsSatelliteSubject, GpsSatellite>() {
        @Override/*from w w w  .  j a va2 s  .co  m*/
        public GpsSatelliteSubject getSubject(FailureStrategy fs, GpsSatellite that) {
            return new GpsSatelliteSubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.webkit.WebViewSubject.java

public static SubjectFactory<WebViewSubject, WebView> type() {
    return new SubjectFactory<WebViewSubject, WebView>() {
        @Override/*from  ww  w .java  2s.  com*/
        public WebViewSubject getSubject(FailureStrategy fs, WebView that) {
            return new WebViewSubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.telephony.gsm.GsmCellLocationSubject.java

public static SubjectFactory<GsmCellLocationSubject, GsmCellLocation> type() {
    return new SubjectFactory<GsmCellLocationSubject, GsmCellLocation>() {
        @Override/*from   w  w  w .  java2  s  .co m*/
        public GsmCellLocationSubject getSubject(FailureStrategy fs, GsmCellLocation that) {
            return new GsmCellLocationSubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.gesture.GestureStrokeSubject.java

public static SubjectFactory<GestureStrokeSubject, GestureStroke> type() {
    return new SubjectFactory<GestureStrokeSubject, GestureStroke>() {
        @Override/* w  w w  . jav a2s. c  o m*/
        public GestureStrokeSubject getSubject(FailureStrategy fs, GestureStroke that) {
            return new GestureStrokeSubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.inputmethodservice.ExtractEditTextSubject.java

public static SubjectFactory<ExtractEditTextSubject, ExtractEditText> type() {
    return new SubjectFactory<ExtractEditTextSubject, ExtractEditText>() {
        @Override//from   www .  ja  v  a  2  s.c  o  m
        public ExtractEditTextSubject getSubject(FailureStrategy fs, ExtractEditText that) {
            return new ExtractEditTextSubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.preferences.PreferenceGroupSubject.java

public static SubjectFactory<PreferenceGroupSubject, PreferenceGroup> type() {
    return new SubjectFactory<PreferenceGroupSubject, PreferenceGroup>() {
        @Override/*w w w .  j a  va2  s . co m*/
        public PreferenceGroupSubject getSubject(FailureStrategy fs, PreferenceGroup that) {
            return new PreferenceGroupSubject(fs, that);
        }
    };
}

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

public static SubjectFactory<CameraSubject, Camera> type() {
    return new SubjectFactory<CameraSubject, Camera>() {
        @Override//  w ww.j  ava 2 s.co m
        public CameraSubject getSubject(FailureStrategy fs, Camera that) {
            return new CameraSubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.telephony.SignalStrengthSubject.java

public static SubjectFactory<SignalStrengthSubject, SignalStrength> type() {
    return new SubjectFactory<SignalStrengthSubject, SignalStrength>() {
        @Override//from   w ww.j a  v  a2 s  .c  om
        public SignalStrengthSubject getSubject(FailureStrategy fs, SignalStrength that) {
            return new SignalStrengthSubject(fs, that);
        }
    };
}

From source file:com.pkware.truth.android.preferences.EditTextPreferencesSubject.java

public static SubjectFactory<EditTextPreferencesSubject, EditTextPreference> type() {
    return new SubjectFactory<EditTextPreferencesSubject, EditTextPreference>() {
        @Override/*w ww .j  ava 2  s  .  c o m*/
        public EditTextPreferencesSubject getSubject(FailureStrategy fs, EditTextPreference that) {
            return new EditTextPreferencesSubject(fs, that);
        }
    };
}

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

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