Merge branch '5.1.x'

This commit is contained in:
Arjen Poutsma
2019-07-30 18:03:01 +02:00
8 changed files with 72 additions and 21 deletions

View File

@@ -100,5 +100,18 @@ public class DefaultClientResponseBuilderTests {
.verifyComplete();
}
@Test
public void fromCustomStatus() {
ClientResponse other = ClientResponse.create(499, ExchangeStrategies.withDefaults())
.build();
ClientResponse result = ClientResponse.from(other)
.build();
assertThat(result.rawStatusCode()).isEqualTo(499);
assertThat(result.statusCode()).isNull();
}
}