mirror of https://github.com/dapr/java-sdk.git
Add more unit tests
Signed-off-by: Artur Ciocanu <ciocanu@adobe.com>
This commit is contained in:
parent
9763be4f51
commit
e7ab81812e
|
|
@ -109,6 +109,18 @@ class DaprClientAutoConfigurationTest {
|
||||||
verify(builder).withPropertyOverride(Properties.GRPC_PORT, String.valueOf(grpcPort));
|
verify(builder).withPropertyOverride(Properties.GRPC_PORT, String.valueOf(grpcPort));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@DisplayName("Should override API token if it exists")
|
||||||
|
void shouldOverrideApiTokenIfExists() {
|
||||||
|
String apiToken = "token";
|
||||||
|
|
||||||
|
when(connectionDetails.getApiToken()).thenReturn(apiToken);
|
||||||
|
|
||||||
|
configuration.daprClientBuilder(connectionDetails);
|
||||||
|
|
||||||
|
verify(builder).withPropertyOverride(Properties.API_TOKEN, apiToken);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@DisplayName("Should override HTTP endpoint in properties if it exists")
|
@DisplayName("Should override HTTP endpoint in properties if it exists")
|
||||||
void shouldOverrideHttpEndpointInPropertiesIfExists() {
|
void shouldOverrideHttpEndpointInPropertiesIfExists() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue