Fix compile errors

Closes gh-32569
This commit is contained in:
Johnny Lim
2022-10-03 00:52:23 +09:00
committed by Brian Clozel
parent 2c39345794
commit d6cfcd0825
2 changed files with 2 additions and 3 deletions

View File

@@ -55,8 +55,7 @@ class ClientHttpObservationConventionAdapterTests {
@BeforeEach
void setup() {
this.context = new ClientHttpObservationContext();
this.context.setCarrier(this.request);
this.context = new ClientHttpObservationContext(this.request);
this.context.setResponse(this.response);
this.context.setUriTemplate("/resource/{name}");
}

View File

@@ -2202,7 +2202,6 @@ class ConfigurationPropertiesTests {
}
@ConstructorBinding
@ConfigurationProperties(prefix = "test")
static class ConstructorParameterWithUnitProperties {
@@ -2212,6 +2211,7 @@ class ConfigurationPropertiesTests {
private final Period period;
@ConstructorBinding
ConstructorParameterWithUnitProperties(@DefaultValue("2") @DurationUnit(ChronoUnit.DAYS) Duration duration,
@DefaultValue("3") @DataSizeUnit(DataUnit.MEGABYTES) DataSize size,
@DefaultValue("4") @PeriodUnit(ChronoUnit.YEARS) Period period) {