Polish
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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]+");
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user