diff --git a/server/src/test/java/com/hedera/block/server/mediator/MediatorConfigTest.java b/server/src/test/java/com/hedera/block/server/mediator/MediatorConfigTest.java index 582e7037b..eb913d625 100644 --- a/server/src/test/java/com/hedera/block/server/mediator/MediatorConfigTest.java +++ b/server/src/test/java/com/hedera/block/server/mediator/MediatorConfigTest.java @@ -34,7 +34,7 @@ public void testMediatorConfig_happyPath() { public void testMediatorConfig_negativeRingBufferSize() { IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> new MediatorConfig(-1, "")); - assertEquals("Ring buffer size must be greater than 0", exception.getMessage()); + assertEquals("Mediator Ring Buffer Size must be positive!", exception.getMessage()); } @Test @@ -52,7 +52,7 @@ public void testMediatorConfig_powerOf2Values() { for (int powerOf2Value : powerOf2Values) { IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> new MediatorConfig(powerOf2Value + 1, "")); - assertEquals("Ring buffer size must be a power of 2", exception.getMessage()); + assertEquals("Mediator Ring Buffer Size must be a power of 2!", exception.getMessage()); } } } diff --git a/server/src/test/java/com/hedera/block/server/notifier/NotifierConfigTest.java b/server/src/test/java/com/hedera/block/server/notifier/NotifierConfigTest.java index 329da42e0..33cc8e5e5 100644 --- a/server/src/test/java/com/hedera/block/server/notifier/NotifierConfigTest.java +++ b/server/src/test/java/com/hedera/block/server/notifier/NotifierConfigTest.java @@ -34,7 +34,7 @@ public void testNotifierConfig_happyPath() { public void testNotifierConfig_negativeRingBufferSize() { IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> new NotifierConfig(-1)); - assertEquals("Ring buffer size must be greater than 0", exception.getMessage()); + assertEquals("Notifier Ring Buffer Size must be positive!", exception.getMessage()); } @Test @@ -53,7 +53,7 @@ public void testMediatorConfig_powerOf2Values() { assertThrows( IllegalArgumentException.class, () -> new NotifierConfig(powerOf2Value + 1)); - assertEquals("Ring buffer size must be a power of 2", exception.getMessage()); + assertEquals("Notifier Ring Buffer Size must be a power of 2!", exception.getMessage()); } } }