This commit is contained in:
Phillip Webb 2024-04-04 20:55:52 -07:00
parent f1018ba38a
commit ea52a44e62
2 changed files with 1 additions and 3 deletions

View File

@ -89,7 +89,7 @@ final class PulsarPropertiesMapper {
try {
return sortedParams.entrySet()
.stream()
.map((e) -> "\"%s\":\"%s\"".formatted(e.getKey(), e.getValue()))
.map((entry) -> "\"%s\":\"%s\"".formatted(entry.getKey(), entry.getValue()))
.collect(Collectors.joining(",", "{", "}"));
}
catch (Exception ex) {

View File

@ -556,7 +556,6 @@ class RabbitAutoConfigurationTests {
Object virtualThread = ReflectionTestUtils.getField(taskExecutor, "virtualThreadFactory");
Thread threadCreated = ((ThreadFactory) virtualThread).newThread(mock(Runnable.class));
assertThat(threadCreated.getName()).containsPattern("rabbit-simple-[0-9]+");
});
}
@ -573,7 +572,6 @@ class RabbitAutoConfigurationTests {
Object virtualThread = ReflectionTestUtils.getField(taskExecutor, "virtualThreadFactory");
Thread threadCreated = ((ThreadFactory) virtualThread).newThread(mock(Runnable.class));
assertThat(threadCreated.getName()).containsPattern("rabbit-direct-[0-9]+");
});
}