public BundleTimelineJson(final SubscriptionBundleTimeline bundleTimeline, @Nullable final AccountAuditLogs accountAuditLogs) { super(toAuditLogJson(accountAuditLogs == null ? null : accountAuditLogs.getAuditLogsForBundle(bundleTimeline.getBundleId()))); this.accountId = bundleTimeline.getAccountId(); this.bundleId = bundleTimeline.getBundleId(); this.externalKey = bundleTimeline.getExternalKey(); this.events = new LinkedList<EventSubscriptionJson>(); for (final SubscriptionEvent subscriptionEvent : bundleTimeline.getSubscriptionEvents()) { this.events.add(new EventSubscriptionJson(subscriptionEvent, accountAuditLogs)); } }
assertEquals(timeline.getAccountId(), accountId); assertEquals(timeline.getBundleId(), bundleId); assertEquals(timeline.getExternalKey(), externalKey);
assertEquals(timeline.getAccountId(), accountId); assertEquals(timeline.getBundleId(), bundleId); assertEquals(timeline.getExternalKey(), externalKey);
assertEquals(timeline.getAccountId(), accountId); assertEquals(timeline.getBundleId(), bundleId); assertEquals(timeline.getExternalKey(), externalKey);
assertEquals(timeline.getAccountId(), accountId); assertEquals(timeline.getBundleId(), bundleId); assertEquals(timeline.getExternalKey(), externalKey);
assertEquals(timeline.getAccountId(), accountId); assertEquals(timeline.getBundleId(), bundleId); assertEquals(timeline.getExternalKey(), externalKey);
assertEquals(timeline.getAccountId(), accountId); assertEquals(timeline.getBundleId(), bundleId); assertEquals(timeline.getExternalKey(), externalKey);
assertEquals(timeline.getAccountId(), accountId); assertEquals(timeline.getBundleId(), bundleId); assertEquals(timeline.getExternalKey(), externalKey);