CompositeMarketDataSnapshot implements MarketDataSnapshot { @Override public Instant getSnapshotTimeIndication() { for (final MarketDataSnapshot snapshot : _snapshots) { final Instant snapshotTimeIndication = snapshot.getSnapshotTimeIndication(); if (snapshotTimeIndication != null) { return snapshotTimeIndication; } } throw new IllegalStateException("None of the underlying snapshots returned a snapshot time indication"); } CompositeMarketDataSnapshot(final List<MarketDataSnapshot> snapshots, final SnapshottingViewExecutionDataProvider.ValueSpecificationProvider valueMap); @Override UniqueId getUniqueId(); @Override Instant getSnapshotTimeIndication(); @Override void init(); @Override void init(final Set<ValueSpecification> values, final long timeout, final TimeUnit unit); @Override boolean isInitialized(); @Override boolean isEmpty(); @Override Instant getSnapshotTime(); @Override Object query(final ValueSpecification value); @Override Map<ValueSpecification, Object> query(final Set<ValueSpecification> values);  }
@Test public void snapshotTimeIndication() { assertNotNull(_snapshot.getSnapshotTimeIndication()); }