当前位置: 首页>>代码示例>>Java>>正文


Java FailureMetadata类代码示例

本文整理汇总了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);
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:8,代码来源:ListSubject.java

示例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;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:8,代码来源:OptionalSubject.java

示例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);
    }
  };
}
 
开发者ID:bazelbuild,项目名称:bazel,代码行数:9,代码来源:ClassPathsSubject.java

示例4: createSubject

import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
@Override
public BitmapSubject createSubject(
    @NonNull FailureMetadata metadata, @NonNull Bitmap actual) {
  return new BitmapSubject(metadata, actual);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:BitmapSubject.java

示例5: BitmapSubject

import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
private BitmapSubject(FailureMetadata failureMetadata, Bitmap subject) {
  super(failureMetadata, subject);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:BitmapSubject.java

示例6: DistributionMetricSubject

import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
private DistributionMetricSubject(FailureMetadata metadata, Metric<Distribution> actual) {
  super(metadata, actual);
}
 
开发者ID:google,项目名称:java-monitoring-client-library,代码行数:4,代码来源:DistributionMetricSubject.java

示例7: LongMetricSubject

import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
private LongMetricSubject(FailureMetadata metadata, Metric<Long> actual) {
  super(metadata, actual);
}
 
开发者ID:google,项目名称:java-monitoring-client-library,代码行数:4,代码来源:LongMetricSubject.java

示例8: AbstractMetricSubject

import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
protected AbstractMetricSubject(FailureMetadata metadata, Metric<T> actual) {
  super(metadata, checkNotNull(actual));
}
 
开发者ID:google,项目名称:java-monitoring-client-library,代码行数:4,代码来源:AbstractMetricSubject.java

示例9: LogSubject

import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
LogSubject(FailureMetadata failureMetadata, TestingConsole target) {
  super(failureMetadata, target);
  this.messages = new ArrayDeque<>(target.getMessages());
}
 
开发者ID:google,项目名称:copybara,代码行数:5,代码来源:LogSubjects.java

示例10: PathSubject

import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
PathSubject(FailureMetadata failureMetadata, Path target) {
  super(failureMetadata, target);
}
 
开发者ID:google,项目名称:copybara,代码行数:4,代码来源:FileSubjects.java

示例11: ProgramResultSubject

import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
private ProgramResultSubject(FailureMetadata failureMetadata, ProgramResult subject) {
  super(failureMetadata, subject);
}
 
开发者ID:bazelbuild,项目名称:rules_closure,代码行数:4,代码来源:ProgramResult.java

示例12: EppExceptionSubject

import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
public EppExceptionSubject(FailureMetadata failureMetadata, EppException subject) {
  super(failureMetadata, subject);
}
 
开发者ID:google,项目名称:nomulus,代码行数:4,代码来源:EppExceptionSubject.java

示例13: AbstractEppResourceSubject

import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
public AbstractEppResourceSubject(FailureMetadata failureMetadata, T subject) {
  super(failureMetadata, checkNotNull(subject));
}
 
开发者ID:google,项目名称:nomulus,代码行数:4,代码来源:AbstractEppResourceSubject.java

示例14: LogsSubject

import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
public LogsSubject(FailureMetadata failureMetadata, TestLogHandler subject) {
  super(failureMetadata, subject);
}
 
开发者ID:google,项目名称:nomulus,代码行数:4,代码来源:LogsSubject.java

示例15: DomainApplicationSubject

import com.google.common.truth.FailureMetadata; //导入依赖的package包/类
public DomainApplicationSubject(FailureMetadata failureMetadata, DomainApplication subject) {
  super(failureMetadata, checkNotNull(subject));
}
 
开发者ID:google,项目名称:nomulus,代码行数:4,代码来源:DomainApplicationSubject.java


注:本文中的com.google.common.truth.FailureMetadata类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。