InMemoryPortfolioMaster extends SimpleAbstractInMemoryMaster<PortfolioDocument> implements PortfolioMaster { @Override public ManageablePortfolioNode getNode(UniqueId nodeId) { ArgumentChecker.notNull(nodeId, "nodeId"); ManageablePortfolioNode node = _storeNodes.get(nodeId.getObjectId()); if (node == null) { throw new DataNotFoundException("Node not found: " + nodeId); } if (isCloneResults()) { return clonePortfolioNode(node); } else { return node; } } InMemoryPortfolioMaster();  InMemoryPortfolioMaster(final ChangeManager changeManager);  InMemoryPortfolioMaster(final Supplier<ObjectId> objectIdSupplier);  InMemoryPortfolioMaster(final Supplier<ObjectId> objectIdSupplier, final ChangeManager changeManager); @Override PortfolioDocument get(UniqueId uniqueId); @Override PortfolioDocument get(ObjectIdentifiable objectId, VersionCorrection versionCorrection); @Override PortfolioDocument add(PortfolioDocument document); @Override PortfolioDocument update(PortfolioDocument document); @Override void remove(ObjectIdentifiable objectIdentifiable); @Override PortfolioDocument correct(PortfolioDocument document); @Override PortfolioSearchResult search(PortfolioSearchRequest request); @Override PortfolioHistoryResult history(PortfolioHistoryRequest request); @Override ManageablePortfolioNode getNode(UniqueId nodeId); static final String DEFAULT_OID_SCHEME; }
@Test(expectedExceptions = DataNotFoundException.class) public void test_getNode_emptyMaster() { _emptyMaster.getNode(UniqueId.of("MemPrt", "1")); }