fix: rename getStreeamPath to getStreamPath
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-06-29 13:50:39 +02:00
parent ff2650e8c1
commit 50e98353ef
4 changed files with 16 additions and 4 deletions

View File

@ -314,7 +314,7 @@ public class UraClient implements Serializable {
// Create the reader.
try {
AsyncUraTripReader reader = new AsyncUraTripReader(
URI.create(requestURL(config.getBaseURL() + config.getStreeamPath(), REQUEST_TRIP, query)),
URI.create(requestURL(config.getBaseURL() + config.getStreamPath(), REQUEST_TRIP, query)),
config,
consumers
);

View File

@ -87,7 +87,7 @@ public class UraClientConfiguration implements Serializable {
*
* @return Stream endpoint path.
*/
public String getStreeamPath() {
public String getStreamPath() {
return this.streamPath;
}

View File

@ -25,7 +25,7 @@ class UraClientConfigurationTest {
UraClientConfiguration config = UraClientConfiguration.forBaseURL(baseURL).build();
assertEquals(baseURL, config.getBaseURL(), "Unexpected base URL");
assertEquals("/interfaces/ura/instant_V1", config.getInstantPath(), "Unexpected default instant path");
assertEquals("/interfaces/ura/stream_V1", config.getStreeamPath(), "Unexpected default stream path");
assertEquals("/interfaces/ura/stream_V1", config.getStreamPath(), "Unexpected default stream path");
assertNull(config.getConnectTimeout(), "No default connection timeout expected");
assertNull(config.getTimeout(), "No default timeout expected");
@ -36,7 +36,7 @@ class UraClientConfigurationTest {
.build();
assertEquals(baseURL, config.getBaseURL(), "Unexpected base URL");
assertEquals(instantPath, config.getInstantPath(), "Unexpected custom instant path");
assertEquals(streamPath, config.getStreeamPath(), "Unexpected custom stream path");
assertEquals(streamPath, config.getStreamPath(), "Unexpected custom stream path");
// With timeouts. (#14)
config = UraClientConfiguration.forBaseURL(baseURL)