add info about revoked event to RevokeEvent for debugging purposes

This commit is contained in:
Fredrik Teschke committed 2014-10-31 21:35:09 +01:00
1 parent 1b79c2b604
commit 273afd47b5
17 files changed
+108 -20

No files matched your search

@@ -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