Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ private ArgumentParseResultSubject(final @NonNull FailureMetadata metadata, fina
if (this.actual == null) {
this.failWithActual(Fact.simpleFact("expected to not be null"));
}
return this.check("parsedValue()").about(OptionalSubject.optionals()).that(this.actual.parsedValue());
return this.check("parsedValue()").that(this.actual.parsedValue());
}

public @NonNull OptionalSubject failure() {
if (this.actual == null) {
this.failWithActual(Fact.simpleFact("expected to not be null"));
}
return this.check("failure()").about(OptionalSubject.optionals()).that(this.actual.failure());
return this.check("failure()").that(this.actual.failure());
}

public void hasParsedValue(final @NonNull T value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ private CompletableFutureSubject(
if (join == null) {
this.failWithActual(Fact.simpleFact("expected result to not be null"));
}
return this.check("join() result or null on failure").about(OptionalSubject.optionals()).that(Optional.of(join));
return this.check("join() result or null on failure").that(Optional.of(join));
} catch (final CompletionException e) {
return this.check("join() result or null on failure").about(OptionalSubject.optionals()).that(Optional.empty());
return this.check("join() result or null on failure").that(Optional.empty());
}
}

Expand All @@ -87,9 +87,9 @@ private CompletableFutureSubject(
}
try {
this.actual.join();
return this.check("cause of CompletionException thrown by join()").about(OptionalSubject.optionals()).that(Optional.empty());
return this.check("cause of CompletionException thrown by join()").that(Optional.empty());
} catch (final CompletionException e) {
return this.check("cause of CompletionException thrown by join()").about(OptionalSubject.optionals()).that(Optional.of(e.getCause()));
return this.check("cause of CompletionException thrown by join()").that(Optional.of(e.getCause()));
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jupiterEngine = "5.11.0"
mockitoCore = "4.11.0"
mockitoKotlin = "4.1.0"
mockitoJupiter = "4.11.0"
truth = "1.4.2"
truth = "1.4.5"
compileTesting = "0.21.0"

# build-logic
Expand Down
Loading