Package com.opengamma.master.portfolio

Examples of com.opengamma.master.portfolio.ManageablePortfolio


    _pos4.getPosition().addTrade(JodaBeanUtils.clone(TRADE3));
    _pos4 = _positionMaster.add(_pos4);
   
    _portfolioMaster = new InMemoryPortfolioMaster();
   
    _portfolioMaster.add(new PortfolioDocument(new ManageablePortfolio("Port1", generatePortfolio())));
   
  }
View Full Code Here


    portSearchRequest.setName(PORTFOLIO_NAME);
    PortfolioSearchResult portSearchResult = new PortfolioSearchResult();
    when(portfolioMaster.search(portSearchRequest)).thenReturn(portSearchResult);
    ManageablePortfolioNode rootNode = new ManageablePortfolioNode(PORTFOLIO_NAME);
    rootNode.setUniqueId(UniqueId.of("abc", "123"));
    ManageablePortfolio portfolio = new ManageablePortfolio(PORTFOLIO_NAME, rootNode);
    PortfolioDocument portfolioDocument = new PortfolioDocument();
    portfolioDocument.setPortfolio(portfolio);
    when(portfolioMaster.add(any(PortfolioDocument.class))).thenReturn(portfolioDocument);
   
    // file to masters
View Full Code Here

TOP

Related Classes of com.opengamma.master.portfolio.ManageablePortfolio

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.