mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Clone RestTestClientBuilder in mutate()
See gh-35698 Signed-off-by: Thomas Recloux <trecloux@purse.eu>
This commit is contained in:
committed by
rstoyanchev
parent
183a9466c5
commit
8e046b8a3c
+1
-1
@@ -132,7 +132,7 @@ class DefaultRestTestClient implements RestTestClient {
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <B extends Builder<B>> Builder<B> mutate() {
|
||||
return (Builder<B>) this.restTestClientBuilder;
|
||||
return new DefaultRestTestClientBuilder<>((DefaultRestTestClientBuilder<B>) this.restTestClientBuilder);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -166,7 +166,7 @@ class DefaultRestTestClientBuilder<B extends RestTestClient.Builder<B>> implemen
|
||||
}
|
||||
|
||||
return new DefaultRestTestClient(
|
||||
this.restClientBuilder, this.entityResultConsumer, new DefaultRestTestClientBuilder<>(this));
|
||||
this.restClientBuilder, this.entityResultConsumer, this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user