com.google.common.truth.FailureMetadata Java Examples
The following examples show how to use
com.google.common.truth.FailureMetadata.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ZipEntrySubject.java From bundletool with Apache License 2.0 | 5 votes |
public ZipEntrySubject(FailureMetadata failureMetadata, ZipFile zip, ZipEntry actual) { super(failureMetadata, actual); this.actual = actual; try { this.zip = zip.getInputStream(actual); } catch (IOException e) { throw new UncheckedIOException(e); } }
Example #2
Source File: ZipEntrySubject.java From bundletool with Apache License 2.0 | 5 votes |
static Subject.Factory<ZipEntrySubject, ZipEntry> zipEntries(ZipFile zip) { return new Subject.Factory<ZipEntrySubject, ZipEntry>() { @Override public ZipEntrySubject createSubject(FailureMetadata metadata, ZipEntry actual) { return new ZipEntrySubject(metadata, zip, actual); } }; }
Example #3
Source File: ClassPathsSubject.java From bazel with Apache License 2.0 | 5 votes |
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); } }; }
Example #4
Source File: JavaSourcesSubject.java From compile-testing with Apache License 2.0 | 5 votes |
SingleSourceAdapter(FailureMetadata failureMetadata, JavaFileObject subject) { super(failureMetadata, subject); /* * TODO(b/131918061): It would make more sense to eliminate SingleSourceAdapter entirely. * Users can already use assertThat(JavaFileObject, JavaFileObject...) above for a single * file. Anyone who needs a Subject.Factory could fall back to * `about(javaSources()).that(ImmutableSet.of(source))`. * * We could take that on, or we could wait for JavaSourcesSubject to go away entirely in favor * of CompilationSubject. */ this.delegate = check("delegate()").about(javaSources()).that(ImmutableList.of(subject)); }
Example #5
Source File: ClassPathsSubject.java From bazel with Apache License 2.0 | 4 votes |
ClassPathsSubject(FailureMetadata failureMetadata, @Nullable Path subject) { super(failureMetadata, subject); this.actual = subject; }
Example #6
Source File: SymbolSubject.java From js-dossier with Apache License 2.0 | 4 votes |
public SymbolSubject(FailureMetadata md, Symbol actual) { super(md, actual); }
Example #7
Source File: PositionSubject.java From js-dossier with Apache License 2.0 | 4 votes |
PositionSubject(FailureMetadata md, @Nullable Position actual) { super(md, actual); }
Example #8
Source File: JSCompSymbolSubject.java From js-dossier with Apache License 2.0 | 4 votes |
public JSCompSymbolSubject(FailureMetadata md, @Nullable Symbol actual) { super(md, actual); }
Example #9
Source File: JSDocInfoSubject.java From js-dossier with Apache License 2.0 | 4 votes |
public JSDocInfoSubject(FailureMetadata md, @Nullable JSDocInfo actual) { super(md, actual); }
Example #10
Source File: DeadlineSubject.java From grpc-java with Apache License 2.0 | 4 votes |
@Override public DeadlineSubject createSubject(FailureMetadata metadata, Deadline that) { return new DeadlineSubject(metadata, that); }
Example #11
Source File: DeadlineSubject.java From grpc-java with Apache License 2.0 | 4 votes |
@SuppressWarnings("unchecked") private DeadlineSubject(FailureMetadata metadata, Deadline subject) { super(metadata, subject); this.actual = subject; }
Example #12
Source File: ModuleSubject.java From js-dossier with Apache License 2.0 | 4 votes |
public ModuleSubject(FailureMetadata md, @Nullable Module actual) { super(md, actual); if (actual != null) { named("Module<%s>", actual.getId().getCompiledName()); } }
Example #13
Source File: JavaFileObjectSubjectFactory.java From compile-testing with Apache License 2.0 | 4 votes |
@Override public JavaFileObjectSubject createSubject(FailureMetadata failureMetadata, JavaFileObject that) { return new JavaFileObjectSubject(failureMetadata, that); }
Example #14
Source File: ToolchainCollectionSubject.java From bazel with Apache License 2.0 | 4 votes |
private ToolchainCollectionSubject( FailureMetadata failureMetadata, ToolchainCollection<?> subject) { super(failureMetadata, subject); this.actual = subject; }
Example #15
Source File: AbstractTypeInspectorTest.java From js-dossier with Apache License 2.0 | 4 votes |
public InstancePropertySubject(FailureMetadata failureMetadata, InstanceProperty subject) { super(failureMetadata, subject); }
Example #16
Source File: UnwrittenMergedAndroidDataSubject.java From bazel with Apache License 2.0 | 4 votes |
public UnwrittenMergedAndroidDataSubject( FailureMetadata failureMetadata, @Nullable UnwrittenMergedAndroidData subject) { super(failureMetadata, subject); this.actual = subject; }
Example #17
Source File: JavaSourceSubjectFactory.java From compile-testing with Apache License 2.0 | 4 votes |
@Override public JavaSourcesSubject.SingleSourceAdapter createSubject(FailureMetadata failureMetadata, JavaFileObject subject) { return new JavaSourcesSubject.SingleSourceAdapter(failureMetadata, subject); }
Example #18
Source File: ResolvedToolchainContextSubject.java From bazel with Apache License 2.0 | 4 votes |
private ResolvedToolchainContextSubject( FailureMetadata failureMetadata, ResolvedToolchainContext subject) { super(failureMetadata, subject); this.actual = subject; }
Example #19
Source File: ParsedAndroidDataSubject.java From bazel with Apache License 2.0 | 4 votes |
public ParsedAndroidDataSubject(FailureMetadata failureMetadata, ParsedAndroidData actual) { super(failureMetadata, actual); this.actual = actual; }
Example #20
Source File: ErrorInfoSubjectFactory.java From bazel with Apache License 2.0 | 4 votes |
@Override public ErrorInfoSubject createSubject(FailureMetadata failureMetadata, ErrorInfo errorInfo) { return new ErrorInfoSubject(failureMetadata, errorInfo); }
Example #21
Source File: PathSubject.java From jimfs with Apache License 2.0 | 4 votes |
@Override public PathSubject createSubject(FailureMetadata failureMetadata, Path that) { return new PathSubject(failureMetadata, that); }
Example #22
Source File: NodeEntrySubjectFactory.java From bazel with Apache License 2.0 | 4 votes |
@Override public NodeEntrySubject createSubject(FailureMetadata failureMetadata, NodeEntry nodeEntry) { return new NodeEntrySubject(failureMetadata, nodeEntry); }
Example #23
Source File: EvaluationResultSubjectFactory.java From bazel with Apache License 2.0 | 4 votes |
@Override public EvaluationResultSubject createSubject( FailureMetadata failureMetadata, EvaluationResult<?> evaluationResult) { return new EvaluationResultSubject(failureMetadata, evaluationResult); }
Example #24
Source File: ErrorInfoSubject.java From bazel with Apache License 2.0 | 4 votes |
public ErrorInfoSubject(FailureMetadata failureMetadata, ErrorInfo errorInfo) { super(failureMetadata, errorInfo); this.actual = errorInfo; }
Example #25
Source File: NodeEntrySubject.java From bazel with Apache License 2.0 | 4 votes |
NodeEntrySubject(FailureMetadata failureMetadata, NodeEntry nodeEntry) { super(failureMetadata, nodeEntry); this.actual = nodeEntry; }
Example #26
Source File: CycleInfoSubject.java From bazel with Apache License 2.0 | 4 votes |
CycleInfoSubject(FailureMetadata failureMetadata, @Nullable CycleInfo cycleInfo) { super(failureMetadata, cycleInfo); this.actual = cycleInfo; }
Example #27
Source File: EvaluationResultSubject.java From bazel with Apache License 2.0 | 4 votes |
public EvaluationResultSubject( FailureMetadata failureMetadata, EvaluationResult<?> evaluationResult) { super(failureMetadata, evaluationResult); this.actual = evaluationResult; }
Example #28
Source File: LocationSubject.java From android-test with Apache License 2.0 | 4 votes |
private LocationSubject(FailureMetadata failureMetadata, @Nullable Location subject) { super(failureMetadata, subject); this.actual = subject; }
Example #29
Source File: IntentSubject.java From android-test with Apache License 2.0 | 4 votes |
private IntentSubject(FailureMetadata failureMetadata, Intent subject) { super(failureMetadata, subject); this.actual = subject; }
Example #30
Source File: JavaSourcesSubject.java From compile-testing with Apache License 2.0 | 4 votes |
JavaSourcesSubject(FailureMetadata failureMetadata, Iterable<? extends JavaFileObject> subject) { super(failureMetadata, subject); this.actual = subject; }