Package com.opengamma.core.security.impl.test

Examples of com.opengamma.core.security.impl.test.MockSecuritySource


    final UniqueId uidB = UniqueId.of("Test", "B");
    final Security secB = Mockito.mock(Security.class);
    final UniqueId uidC = UniqueId.of("Test", "C");
    final Security secC = Mockito.mock(Security.class);
    final CyclicBarrier barrier = new CyclicBarrier(4);
    final MockSecuritySource underlying = new MockSecuritySource() {

      int _state;

      @Override
      public Security get(final UniqueId uid) {
View Full Code Here


    final Security secB = Mockito.mock(Security.class);
    final UniqueId uidC = UniqueId.of("Test", "C");
    final Security secC = Mockito.mock(Security.class);
    final CyclicBarrier barrier1 = new CyclicBarrier(3);
    final CyclicBarrier barrier2 = new CyclicBarrier(2);
    final MockSecuritySource underlying = new MockSecuritySource() {

      int _state;

      @Override
      public Security get(final UniqueId uid) {
View Full Code Here

    final UniqueId uidB = UniqueId.of("Test", "B");
    final Security secB = Mockito.mock(Security.class);
    final UniqueId uidC = UniqueId.of("Test", "C");
    final Security secC = Mockito.mock(Security.class);
    final CyclicBarrier barrier = new CyclicBarrier(4);
    final MockSecuritySource underlying = new MockSecuritySource() {

      int _state;

      @Override
      public Map<UniqueId, Security> get(final Collection<UniqueId> uids) {
View Full Code Here

    final Security secB = Mockito.mock(Security.class);
    final UniqueId uidC = UniqueId.of("Test", "C");
    final Security secC = Mockito.mock(Security.class);
    final CyclicBarrier barrier1 = new CyclicBarrier(3);
    final CyclicBarrier barrier2 = new CyclicBarrier(2);
    final MockSecuritySource underlying = new MockSecuritySource() {

      int _state;

      @Override
      public Map<UniqueId, Security> get(final Collection<UniqueId> uids) {
View Full Code Here

    "US Treasury", Currency.USD, "Senior", "No Restructuring");
  private ISDAApproxCDSPriceFlatSpreadFunction testItem;

  @BeforeClass
  public static void initBeforeClass() {
    securitySource = new MockSecuritySource();
    functionCompilationContext = new FunctionCompilationContext();
    functionCompilationContext.setFunctionInitId(123);
    functionCompilationContext.setSecuritySource(securitySource);
    final MapComputationTargetResolver targetResolver = new MapComputationTargetResolver();
    functionCompilationContext.setRawComputationTargetResolver(targetResolver);
View Full Code Here

public class TestCalculationNode extends SimpleCalculationNode {

  private static FunctionCompilationContext compilationContext() {
    final FunctionCompilationContext context = new FunctionCompilationContext();
    context.setSecuritySource(new MockSecuritySource());
    context.setRawComputationTargetResolver(new DefaultComputationTargetResolver(context.getSecuritySource(), new MockPositionSource()));
    return context;
  }
View Full Code Here

TOP

Related Classes of com.opengamma.core.security.impl.test.MockSecuritySource

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.