Skip to content

Commit 1ba2662

Browse files
committed
Remove use of ReflectionTestUtils
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
1 parent 63c7b0b commit 1ba2662

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

dapr-spring/dapr-spring-boot-autoconfigure/src/test/java/io/dapr/spring/boot/autoconfigure/client/DaprClientAutoConfigurationTests.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,4 @@ void daprClientBuilder() {
4343
void daprClient() {
4444
contextRunner.run(context -> assertThat(context).hasSingleBean(DaprClient.class));
4545
}
46-
47-
@Test
48-
@DisplayName("Should override properties when generating DaprClientBuilder")
49-
void shouldOverridePropertiesWhenGeneratingDaprClientBuilder() {
50-
PropertiesDaprConnectionDetails details = new PropertiesDaprConnectionDetails(
51-
new DaprClientProperties(
52-
"http://localhost", "localhost", 3500, 50001
53-
)
54-
);
55-
contextRunner.withBean(DaprConnectionDetails.class, () -> details).run(context -> {
56-
57-
DaprClientBuilder builder = context.getBean(DaprClientBuilder.class);
58-
Map<String, String> propertyOverrides =
59-
(Map<String, String>) ReflectionTestUtils.getField(builder, "propertyOverrides");
60-
61-
SoftAssertions.assertSoftly(softly -> {
62-
softly.assertThat(propertyOverrides.get("dapr.grpc.endpoint")).isEqualTo("localhost");
63-
softly.assertThat(propertyOverrides.get("dapr.http.endpoint")).isEqualTo("http://localhost");
64-
softly.assertThat(propertyOverrides.get("dapr.grpc.port")).isEqualTo("50001");
65-
softly.assertThat(propertyOverrides.get("dapr.http.port")).isEqualTo("3500");
66-
});
67-
});
68-
}
6946
}

0 commit comments

Comments
 (0)