Skip to content

Commit

Permalink
unit test fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Atanas Atanasov <[email protected]>
  • Loading branch information
ata-nas committed Nov 11, 2024
1 parent cacfb7e commit 7fc51bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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());
}
}
}

0 comments on commit 7fc51bb

Please sign in to comment.