本文整理汇总了Java中com.google.common.truth.FailureMetadata类的典型用法代码示例。如果您正苦于以下问题:Java FailureMetadata类的具体用法?Java FailureMetadata怎么用?Java FailureMetadata使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FailureMetadata类属于com.google.common.truth包,在下文中一共展示了FailureMetadata类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createSubject
import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public ListSubject<S, T> createSubject(FailureMetadata failureMetadata, Iterable<?> objects) {
// The constructor of ListSubject only accepts lists.
// -> Casting is appropriate.
return new ListSubject<>(failureMetadata, (List<T>) objects, elementAssertThatFunction);
}
示例2: OptionalSubject
import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
private OptionalSubject(
FailureMetadata failureMetadata,
Optional<T> optional,
Function<? super T, ? extends S> valueAssertThatFunction) {
super(failureMetadata, optional);
this.valueAssertThatFunction = valueAssertThatFunction;
}
示例3: classNames
import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
static Subject.Factory<ClassNameSubject, String> classNames(Path basePath) {
return new Subject.Factory<ClassNameSubject, String>() {
@Override
public ClassNameSubject createSubject(FailureMetadata metadata, String actual) {
return new ClassNameSubject(metadata, basePath, actual);
}
};
}
示例4: createSubject
import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
@Override
public BitmapSubject createSubject(
@NonNull FailureMetadata metadata, @NonNull Bitmap actual) {
return new BitmapSubject(metadata, actual);
}
示例5: BitmapSubject
import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
private BitmapSubject(FailureMetadata failureMetadata, Bitmap subject) {
super(failureMetadata, subject);
}
示例6: DistributionMetricSubject
import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
private DistributionMetricSubject(FailureMetadata metadata, Metric<Distribution> actual) {
super(metadata, actual);
}
示例7: LongMetricSubject
import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
private LongMetricSubject(FailureMetadata metadata, Metric<Long> actual) {
super(metadata, actual);
}
示例8: AbstractMetricSubject
import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
protected AbstractMetricSubject(FailureMetadata metadata, Metric<T> actual) {
super(metadata, checkNotNull(actual));
}
示例9: LogSubject
import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
LogSubject(FailureMetadata failureMetadata, TestingConsole target) {
super(failureMetadata, target);
this.messages = new ArrayDeque<>(target.getMessages());
}
示例10: PathSubject
import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
PathSubject(FailureMetadata failureMetadata, Path target) {
super(failureMetadata, target);
}
示例11: ProgramResultSubject
import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
private ProgramResultSubject(FailureMetadata failureMetadata, ProgramResult subject) {
super(failureMetadata, subject);
}
示例12: EppExceptionSubject
import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
public EppExceptionSubject(FailureMetadata failureMetadata, EppException subject) {
super(failureMetadata, subject);
}
示例13: AbstractEppResourceSubject
import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
public AbstractEppResourceSubject(FailureMetadata failureMetadata, T subject) {
super(failureMetadata, checkNotNull(subject));
}
示例14: LogsSubject
import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
public LogsSubject(FailureMetadata failureMetadata, TestLogHandler subject) {
super(failureMetadata, subject);
}
示例15: DomainApplicationSubject
import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
public DomainApplicationSubject(FailureMetadata failureMetadata, DomainApplication subject) {
super(failureMetadata, checkNotNull(subject));
}