mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-22 16:26:06 +00:00
📍Use lombok, reformat, and optimize the code (#1560)
* Use lombok, reformat, and optimize the code * Fix merge conflicts and some sonar issues Co-authored-by: va1m <va1m@email.com>
This commit is contained in:
@@ -37,33 +37,33 @@ import org.junit.jupiter.api.Test;
|
||||
public class PoisonMessageTest {
|
||||
|
||||
@Test
|
||||
public void testAddHeader() {
|
||||
void testAddHeader() {
|
||||
assertThrows(UnsupportedOperationException.class, () -> {
|
||||
POISON_PILL.addHeader(Headers.SENDER, "sender");
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetHeader() {
|
||||
void testGetHeader() {
|
||||
assertThrows(UnsupportedOperationException.class, () -> {
|
||||
POISON_PILL.getHeader(Headers.SENDER);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetHeaders() {
|
||||
void testGetHeaders() {
|
||||
assertThrows(UnsupportedOperationException.class, POISON_PILL::getHeaders);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetBody() {
|
||||
void testSetBody() {
|
||||
assertThrows(UnsupportedOperationException.class, () -> {
|
||||
POISON_PILL.setBody("Test message.");
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetBody() {
|
||||
void testGetBody() {
|
||||
assertThrows(UnsupportedOperationException.class, POISON_PILL::getBody);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user