本文整理汇总了Java中com.google.common.truth.SubjectFactory类的典型用法代码示例。如果您正苦于以下问题:Java SubjectFactory类的具体用法?Java SubjectFactory怎么用?Java SubjectFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SubjectFactory类属于com.google.common.truth包,在下文中一共展示了SubjectFactory类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: type
import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<PredictionSubject, Prediction> type() {
return new SubjectFactory<PredictionSubject, Prediction>() {
@Override
public PredictionSubject getSubject(FailureStrategy fs, Prediction that) {
return new PredictionSubject(fs, that);
}
};
}
示例2: type
import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static <K, V> SubjectFactory<ArrayMapSubject<K, V>, ArrayMap<K, V>> type() {
return new SubjectFactory<ArrayMapSubject<K, V>, ArrayMap<K, V>>() {
@Override
public ArrayMapSubject<K, V> getSubject(FailureStrategy fs, ArrayMap<K, V> that) {
return new ArrayMapSubject<K, V>(fs, that);
}
};
}
示例3: type
import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<DetectedActivitySubject, DetectedActivity> type() {
return new SubjectFactory<DetectedActivitySubject, DetectedActivity>() {
@Override
public DetectedActivitySubject getSubject(FailureStrategy fs, DetectedActivity that) {
return new DetectedActivitySubject(fs, that);
}
};
}
示例4: type
import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<TabLayoutSubject, TabLayout> type() {
return new SubjectFactory<TabLayoutSubject, TabLayout>() {
@Override
public TabLayoutSubject getSubject(FailureStrategy fs, TabLayout that) {
return new TabLayoutSubject(fs, that);
}
};
}
示例5: type
import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<CompoundButtonSubject, CompoundButton> type() {
return new SubjectFactory<CompoundButtonSubject, CompoundButton>() {
@Override
public CompoundButtonSubject getSubject(FailureStrategy fs, CompoundButton that) {
return new CompoundButtonSubject(fs, that);
}
};
}
示例6: type
import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<ServiceStateSubject, ServiceState> type() {
return new SubjectFactory<ServiceStateSubject, ServiceState>() {
@Override
public ServiceStateSubject getSubject(FailureStrategy fs, ServiceState that) {
return new ServiceStateSubject(fs, that);
}
};
}
示例7: type
import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<IntentSubject, Intent> type() {
return new SubjectFactory<IntentSubject, Intent>() {
@Override
public IntentSubject getSubject(FailureStrategy fs, Intent that) {
return new IntentSubject(fs, that);
}
};
}
示例8: type
import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<FragmentManagerSubject, FragmentManager> type() {
return new SubjectFactory<FragmentManagerSubject, FragmentManager>() {
@Override
public FragmentManagerSubject getSubject(FailureStrategy fs, FragmentManager that) {
return new FragmentManagerSubject(fs, that);
}
};
}
示例9: type
import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<LoaderManagerSubject, LoaderManager> type() {
return new SubjectFactory<LoaderManagerSubject, LoaderManager>() {
@Override
public LoaderManagerSubject getSubject(FailureStrategy fs, LoaderManager that) {
return new LoaderManagerSubject(fs, that);
}
};
}
示例10: type
import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<FragmentSubject, Fragment> type() {
return new SubjectFactory<FragmentSubject, Fragment>() {
@Override
public FragmentSubject getSubject(FailureStrategy fs, Fragment that) {
return new FragmentSubject(fs, that);
}
};
}
示例11: type
import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<PictureSubject, Picture> type() {
return new SubjectFactory<PictureSubject, Picture>() {
@Override
public PictureSubject getSubject(FailureStrategy fs, Picture that) {
return new PictureSubject(fs, that);
}
};
}
示例12: type
import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<MediaControllerSubject, MediaController> type() {
return new SubjectFactory<MediaControllerSubject, MediaController>() {
@Override
public MediaControllerSubject getSubject(FailureStrategy fs, MediaController that) {
return new MediaControllerSubject(fs, that);
}
};
}
示例13: type
import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<SensorSubject, Sensor> type() {
return new SubjectFactory<SensorSubject, Sensor>() {
@Override
public SensorSubject getSubject(FailureStrategy fs, Sensor that) {
return new SensorSubject(fs, that);
}
};
}
示例14: type
import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<AccessibilityEventSubject, AccessibilityEvent> type() {
return new SubjectFactory<AccessibilityEventSubject, AccessibilityEvent>() {
@Override
public AccessibilityEventSubject getSubject(FailureStrategy fs, AccessibilityEvent that) {
return new AccessibilityEventSubject(fs, that);
}
};
}
示例15: type
import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<AnimationSubject, Animation> type() {
return new SubjectFactory<AnimationSubject, Animation>() {
@Override
public AnimationSubject getSubject(FailureStrategy fs, Animation that) {
return new AnimationSubject(fs, that);
}
};
}