View Javadoc
1   package com.github.jonasrutishauser.transactional.event.api.store;
2   
3   import static org.junit.jupiter.api.Assertions.*;
4   
5   import java.time.LocalDateTime;
6   
7   import org.junit.jupiter.api.Test;
8   
9   class BlockedEventTest {
10  
11      private final BlockedEvent testee = new BlockedEvent("id", "type", "payload", LocalDateTime.of(2021, 1, 1, 12, 42));
12  
13      @Test
14      void testGetEventId() {
15          assertEquals("id", testee.getEventId());
16      }
17  
18      @Test
19      void testGetEventType() {
20          assertEquals("type", testee.getEventType());
21      }
22  
23      @Test
24      void testGetPayload() {
25          assertEquals("payload", testee.getPayload());
26      }
27  
28      @Test
29      void testGetPublishedAt() {
30          assertEquals(LocalDateTime.of(2021, 1, 1, 12, 42), testee.getPublishedAt());
31      }
32  
33  }