本文整理汇总了Java中com.google.common.truth.Subject.Factory方法的典型用法代码示例。如果您正苦于以下问题:Java Subject.Factory方法的具体用法?Java Subject.Factory怎么用?Java Subject.Factory使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.common.truth.Subject
的用法示例。
在下文中一共展示了Subject.Factory方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: classNames
import com.google.common.truth.Subject; //导入方法依赖的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);
}
};
}
示例2: booleanFormulasOf
import com.google.common.truth.Subject; //导入方法依赖的package包/类
/**
* Use this for checking assertions about BooleanFormulas (given the corresponding solver) with
* Truth: <code>assert_().about(booleanFormulasOf(context)).that(formula).is...()</code>.
*/
public static Subject.Factory<BooleanFormulaSubject, BooleanFormula> booleanFormulasOf(
final SolverContext context) {
return (metadata, formula) -> new BooleanFormulaSubject(metadata, formula, context);
}
示例3: proverEnvironments
import com.google.common.truth.Subject; //导入方法依赖的package包/类
/**
* Use this for checking assertions about ProverEnvironments with Truth: <code>
* assert_().about(proverEnvironments()).that(stack).is...()</code>.
*/
public static Subject.Factory<ProverEnvironmentSubject, BasicProverEnvironment<?>>
proverEnvironments() {
return (metadata, formula) -> new ProverEnvironmentSubject(metadata, formula);
}
示例4: types
import com.google.common.truth.Subject; //导入方法依赖的package包/类
public static Subject.Factory<TypeSubject, TypeI> types() {
return TypeSubject::new;
}
示例5: checkedProviders
import com.google.common.truth.Subject; //导入方法依赖的package包/类
public static <T, P extends CheckedProvider<T>>
Subject.Factory<CheckedProviderSubject<T, P>, P> checkedProviders() {
return new CheckedProviderSubjectFactory<>();
}
示例6: deadline
import com.google.common.truth.Subject; //导入方法依赖的package包/类
public static Subject.Factory<DeadlineSubject, Deadline> deadline() {
return deadlineFactory;
}
示例7: paths
import com.google.common.truth.Subject; //导入方法依赖的package包/类
/** Returns the subject factory for doing assertions on paths. */
public static Subject.Factory<PathSubject, Path> paths() {
return new PathSubjectFactory();
}
示例8: javaFileObjects
import com.google.common.truth.Subject; //导入方法依赖的package包/类
/** Returns a {@link Subject.Factory} for {@link JavaFileObjectSubject}s. */
public static Subject.Factory<JavaFileObjectSubject, JavaFileObject> javaFileObjects() {
return FACTORY;
}
示例9: compilations
import com.google.common.truth.Subject; //导入方法依赖的package包/类
/** Returns a {@link Subject.Factory} for a {@link Compilation}. */
public static Subject.Factory<CompilationSubject, Compilation> compilations() {
return FACTORY;
}