mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-14 16:20:57 +00:00
add info about revoked event to RevokeEvent for debugging purposes
This commit is contained in:
1 parent
1b79c2b604
commit
273afd47b5
17 files changed
+108
-20
No files matched your search
+8
-1
@@ -230,14 +230,21 @@ public class StoreAndLoadRaceLogEventsTest extends AbstractMongoDBTest {
|
||||
@Test
|
||||
public void testStoreAndLoadRevokeEvent() {
|
||||
UUID revokedEventId = UUID.randomUUID();
|
||||
String revokedEventType = "type";
|
||||
String revokedEventShortInfo = "short info";
|
||||
String reason = "reason";
|
||||
RevokeEvent expectedEvent = eventFactory.createRevokeEvent(
|
||||
expectedEventTime, author, expectedEventTime, expectedId, expectedPassId, revokedEventId);
|
||||
expectedEventTime, author, expectedEventTime, expectedId, expectedPassId, revokedEventId,
|
||||
revokedEventType, revokedEventShortInfo, reason);
|
||||
|
||||
DBObject dbObject = mongoFactory.storeRaceLogEntry(logIdentifier, expectedEvent);
|
||||
RevokeEvent actualEvent = loadEvent(dbObject);
|
||||
|
||||
assertBaseFields(expectedEvent, actualEvent);
|
||||
assertEquals(revokedEventId, actualEvent.getRevokedEventId());
|
||||
assertEquals(revokedEventType, actualEvent.getRevokedEventType());
|
||||
assertEquals(revokedEventShortInfo, actualEvent.getRevokedEventShortInfo());
|
||||
assertEquals(reason, actualEvent.getReason());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in new issue
Block a user