Skip to content

Commit

Permalink
Change toHttpResponse() to unwrap().
Browse files Browse the repository at this point in the history
  • Loading branch information
tomatophobia committed Jul 12, 2023
1 parent df601b9 commit 7401e66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public HttpHeaders trailers() {
}

@Override
public HttpResponse toHttpResponse() {
return delegate.toHttpResponse();
public AggregatedHttpResponse unwrap() {
return delegate;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,9 @@ static TestHttpResponse of(AggregatedHttpResponse aggregatedHttpResponse) {
HttpStatus status();

/**
* Converts this response into a new complete {@link HttpResponse}.
*
* @return the new {@link HttpResponse} converted from this response.
* Returns the original {@link HttpResponse} which is converted to this response.
*/
HttpResponse toHttpResponse();
AggregatedHttpResponse unwrap();

/**
* Creates a new instance of {@link HttpStatusAssert} from status of the http response.
Expand Down

0 comments on commit 7401e66

Please sign in to comment.