Examples of SimplePortfolioNode


Examples of com.opengamma.core.position.impl.SimplePortfolioNode

  }

  @Test
  public void testEmptyPortfolioIsReturnedWhenAllNodesAreDenied() {

    SimplePortfolioNode root = nodeTree(1, nodeTree(2, nodeTree(4)), nodeTree(3));
    Portfolio pf = new SimplePortfolio("node-1", root);

    Portfolio portfolio = new NodeCheckingPortfolioFilter(createDenyNodeChecker()).generateRestrictedPortfolio(pf);

    assertThat(portfolio.getRootNode().size(), is(0));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.