From dac75d8568611d13b38711b958f87ac127fc02aa Mon Sep 17 00:00:00 2001 From: Benjamin Graf Date: Tue, 1 Oct 2024 21:03:37 +0200 Subject: [PATCH] Fix test case for future Narayana releases after reverting of JBTM-3883 --- .../core/properties/NarayanaPropertiesInitializerTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/narayana-spring-boot-core/src/test/java/dev/snowdrop/boot/narayana/core/properties/NarayanaPropertiesInitializerTests.java b/narayana-spring-boot-core/src/test/java/dev/snowdrop/boot/narayana/core/properties/NarayanaPropertiesInitializerTests.java index 0fdaab68..bc209897 100644 --- a/narayana-spring-boot-core/src/test/java/dev/snowdrop/boot/narayana/core/properties/NarayanaPropertiesInitializerTests.java +++ b/narayana-spring-boot-core/src/test/java/dev/snowdrop/boot/narayana/core/properties/NarayanaPropertiesInitializerTests.java @@ -17,6 +17,7 @@ package dev.snowdrop.boot.narayana.core.properties; import java.lang.reflect.Field; +import java.nio.charset.StandardCharsets; import java.util.List; import java.util.Map; @@ -173,6 +174,6 @@ void shouldSetShortenNodeIdentifier() { narayanaPropertiesInitializer.afterPropertiesSet(); assertThat(BeanPopulator.getDefaultInstance(CoreEnvironmentBean.class) - .getNodeIdentifierBytes().length).isEqualTo(28); + .getNodeIdentifier().getBytes(StandardCharsets.UTF_8)).hasSize(28); } }