InMemoryConfigMaster implements ConfigMaster { @Override public ConfigDocument get(final ObjectIdentifiable objectId, final VersionCorrection versionCorrection) { ArgumentChecker.notNull(objectId, "objectId"); ArgumentChecker.notNull(versionCorrection, "versionCorrection"); final ConfigDocument document = _store.get(objectId.getObjectId()); if (document == null) { throw new DataNotFoundException("Config not found: " + objectId); } return document; } InMemoryConfigMaster();  InMemoryConfigMaster(final ChangeManager changeManager);  InMemoryConfigMaster(final Supplier<ObjectId> objectIdSupplier);  InMemoryConfigMaster(final Supplier<ObjectId> objectIdSupplier, final ChangeManager changeManager); @Override ConfigSearchResult<T> search(final ConfigSearchRequest<T> request); @Override ConfigDocument get(final ObjectIdentifiable objectId, final VersionCorrection versionCorrection); @Override ConfigDocument add(final ConfigDocument document); @Override ConfigDocument update(final ConfigDocument document); @Override void remove(final ObjectIdentifiable objectIdentifiable); @Override ConfigDocument correct(final ConfigDocument document); @Override ChangeManager changeManager(); @Override ConfigDocument get(final UniqueId uniqueId); @Override ConfigMetaDataResult metaData(final ConfigMetaDataRequest request); @Override List<UniqueId> replaceVersions(final ObjectIdentifiable objectId, final List<ConfigDocument> replacementDocuments); @Override List<UniqueId> replaceVersion(final UniqueId uniqueId, final List<ConfigDocument> replacementDocuments); @Override List<UniqueId> replaceAllVersions(final ObjectIdentifiable objectId, final List<ConfigDocument> replacementDocuments); @Override UniqueId addVersion(final ObjectIdentifiable objectId, final ConfigDocument documentToAdd); @Override void removeVersion(final UniqueId uniqueId); @Override UniqueId replaceVersion(final ConfigDocument replacementDocument); @Override ConfigHistoryResult<R> history(final ConfigHistoryRequest<R> request); @Override Map<UniqueId, ConfigDocument> get(final Collection<UniqueId> uniqueIds); static final String DEFAULT_OID_SCHEME; }
@Test(expectedExceptions = DataNotFoundException.class) public void test_get_emptyMaster() { assertNull(_testEmpty.get(OTHER_UID)); }