InMemorySnapshotMaster extends SimpleAbstractInMemoryMaster<MarketDataSnapshotDocument> implements MarketDataSnapshotMaster { @Override public void remove(ObjectIdentifiable objectIdentifiable) { ArgumentChecker.notNull(objectIdentifiable, "objectIdentifiable"); validateObjectId(objectIdentifiable.getObjectId()); if (_store.remove(objectIdentifiable.getObjectId()) == null) { throw new DataNotFoundException("Security not found: " + objectIdentifiable); } _changeManager.entityChanged(ChangeType.REMOVED, objectIdentifiable.getObjectId(), null, null, Instant.now()); } InMemorySnapshotMaster();  InMemorySnapshotMaster(final ChangeManager changeManager);  InMemorySnapshotMaster(final Supplier<ObjectId> objectIdSupplier);  InMemorySnapshotMaster(final Supplier<ObjectId> objectIdSupplier, final ChangeManager changeManager); @Override MarketDataSnapshotSearchResult search(final MarketDataSnapshotSearchRequest request); @Override MarketDataSnapshotDocument get(final UniqueId uniqueId); @Override MarketDataSnapshotDocument get(final ObjectIdentifiable objectId, final VersionCorrection versionCorrection); @Override MarketDataSnapshotDocument add(final MarketDataSnapshotDocument document); @Override MarketDataSnapshotDocument update(final MarketDataSnapshotDocument document); @Override void remove(ObjectIdentifiable objectIdentifiable); @Override MarketDataSnapshotDocument correct(final MarketDataSnapshotDocument document); @Override MarketDataSnapshotHistoryResult history(final MarketDataSnapshotHistoryRequest request); static final String DEFAULT_OID_SCHEME; }
@Test(expectedExceptions = DataNotFoundException.class) public void test_remove_emptyMaster() { _testEmpty.remove(OTHER_UID); }