Skip to content

Commit

Permalink
fix: spotlessApply
Browse files Browse the repository at this point in the history
  • Loading branch information
levinkerschberger committed Nov 11, 2024
1 parent bb67826 commit 1b9f2a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ public List<ConnectionDto> getConnections() {
* @return List<ConnectionDto> The connections that match the query.
*/
public List<ConnectionDto> queryConnections(QueryConnectionRequest query) {
return connectionCache.entrySet().stream().filter(entry -> matchesConnection(entry.getValue(), query))
return connectionCache.entrySet().stream()
.filter(entry -> matchesConnection(entry.getValue(), query))
.map(entry -> ConnectionDto.fromConnection(entry.getKey(), entry.getValue()))
.collect(Collectors.toList());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void get_connection_whenEverythingIsValid_shouldReturnOk() throws Exception {
String agentId = "12345";
ConnectionDto connectionDto =
new ConnectionDto(
"id",
"id",
Instant.now(),
ConnectionStatus.CONNECTED,
"service name",
Expand All @@ -119,7 +119,7 @@ void update_connection_whenEverythingIsValid_shouldReturnOk() throws Exception {
String agentId = "12345";
ConnectionDto connectionDto =
new ConnectionDto(
"id",
"id",
Instant.now(),
ConnectionStatus.CONNECTED,
"service name",
Expand Down Expand Up @@ -171,7 +171,7 @@ void queryConnections_whenMultipleParametersAreDefined_shouldReturnOk() throws E
List<ConnectionDto> connectionDtos =
List.of(
new ConnectionDto(
"id",
"id",
Instant.now(),
ConnectionStatus.CONNECTED,
"service-name",
Expand Down Expand Up @@ -230,7 +230,7 @@ void queryConnections_whenRegexInParameters_shouldReturnOk() throws Exception {
List<ConnectionDto> connectionDtos =
List.of(
new ConnectionDto(
"id",
"id",
Instant.parse("2023-04-15T12:34:56Z"),
ConnectionStatus.CONNECTED,
"service-name",
Expand Down

0 comments on commit 1b9f2a2

Please sign in to comment.