Skip to content

Commit

Permalink
Improve test case method names
Browse files Browse the repository at this point in the history
  • Loading branch information
osandamaleesha committed Sep 18, 2024
1 parent d3435de commit edba811
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,9 @@ public void testGetHttpReadTimeoutInMillis() {
}

@Test
public void testGetHttpReadTimeoutInMillisWithoutNumberFormat() {
public void testGetHttpReadTimeoutInMillisForInvalidConfig() {

//If the server configuration value is not a number, the default http read timeout value of 5000 is parsed
Map<String, Object> configMap = new HashMap<>();
configMap.put("Actions.HTTPClient.HTTPReadTimeout", "value");
when(mockIdentityConfigParser.getConfiguration()).thenReturn(configMap);
Expand Down Expand Up @@ -350,8 +351,9 @@ public void testGetHttpConnectionPoolSize() {
}

@Test
public void testGetHttpConnectionPoolSizeWithoutNumberFormat() {
public void testGetHttpConnectionPoolSizeForInvalidConfig() {

//If the server configuration value is not a number, the default http connection pool size value of 20 is parsed
Map<String, Object> configMap = new HashMap<>();
configMap.put("Actions.HTTPClient.HTTPConnectionPoolSize", "value");
when(mockIdentityConfigParser.getConfiguration()).thenReturn(configMap);
Expand Down

0 comments on commit edba811

Please sign in to comment.