Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaconsalvi committed Nov 27, 2024
1 parent 291e9c0 commit 0f8026c
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class CosmosDBConfigTest {
void setUp() {
lenient().when(cosmosPropertiesConfig.getDatabase()).thenReturn("test-db");
lenient().when(cosmosPropertiesConfig.getUri()).thenReturn("https://test-endpoint:443/");
lenient().when(cosmosPropertiesConfig.getKey()).thenReturn("keykey");

}

@Test
Expand All @@ -36,9 +38,9 @@ void testGetDatabaseName() {
}

@Test
void testGetCosmosClientBuilder() {
CosmosClientBuilder builder = cosmosDBConfig.getCosmosClientBuilder();
void testGetCosmosKeyAndUri() {
assertNotNull(cosmosDBConfig.getCosmosClientBuilder());
verify(cosmosPropertiesConfig).getUri();
assertNotNull(builder);
verify(cosmosPropertiesConfig).getKey();
}
}

0 comments on commit 0f8026c

Please sign in to comment.