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

This commit is contained in:
Stefan Kalscheuer 2024-06-29 13:50:39 +02:00
parent ff2650e8c1
commit 50e98353ef
Signed by: stefan
GPG Key ID: 3887EC2A53B55430
4 changed files with 16 additions and 4 deletions

View File

@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## unreleased ## unreleased
### Fixed
* renamed `UraClientConfiguration#getStreeamPath()` to `getStreamPath()`
### Dependencies ### Dependencies
* Updated Jackson dependency to 2.17.1 * Updated Jackson dependency to 2.17.1
@ -71,6 +75,14 @@ All notable changes to this project will be documented in this file.
---- ----
## 1.3.3 - 2022-11-21
### Security
* Updated Jackson dependency to 2.14.0
### Fixed
* Querying trips and messages with limit directly from `Query` instance (#19)
## 1.3.2 - 2022-08-30 ## 1.3.2 - 2022-08-30
### Improvements ### Improvements

View File

@ -314,7 +314,7 @@ public class UraClient implements Serializable {
// Create the reader. // Create the reader.
try { try {
AsyncUraTripReader reader = new AsyncUraTripReader( 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, config,
consumers consumers
); );

View File

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

View File

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