Examples of accept()


Examples of com.opengamma.financial.security.option.EquityBarrierOptionSecurity.accept()

  }

  @Test
  public void testEquityBarrierOptionSecurity() {
    final EquityBarrierOptionSecurity security = ExposureFunctionTestHelper.getEquityBarrierOptionSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "EQUITY_BARRIER_OPTION"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.option.EquityIndexDividendFutureOptionSecurity.accept()

  }

  @Test
  public void testEquityIndexDividendFutureOptionSecurity() {
    final EquityIndexDividendFutureOptionSecurity security = ExposureFunctionTestHelper.getEquityIndexDividendFutureOptionSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "EQUITY_INDEX_DIVIDEND_FUTURE_OPTION"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.option.EquityIndexFutureOptionSecurity.accept()

  }

  @Test
  public void testEquityIndexFutureOptionSecurity() {
    final EquityIndexFutureOptionSecurity security = ExposureFunctionTestHelper.getEquityIndexFutureOptionSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "EQUITY_INDEX_FUTURE_OPTION"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.option.EquityIndexOptionSecurity.accept()

  }

  @Test
  public void testEquityIndexOptionSecurity() {
    final EquityIndexOptionSecurity security = ExposureFunctionTestHelper.getEquityIndexOptionSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "EQUITY_INDEX_OPTION"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.option.EquityOptionSecurity.accept()

  }

  @Test
  public void testEquityOptionSecurity() {
    final EquityOptionSecurity security = ExposureFunctionTestHelper.getEquityOptionSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "EQUITY_OPTION"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.option.FXBarrierOptionSecurity.accept()

  }

  @Test
  public void testFXBarrierOptionSecurity() {
    final FXBarrierOptionSecurity security = ExposureFunctionTestHelper.getFXBarrierOptionSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "FX_BARRIER_OPTION"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.option.FXDigitalOptionSecurity.accept()

  }

  @Test
  public void testFXDigitalOptionSecurity() {
    final FXDigitalOptionSecurity security = ExposureFunctionTestHelper.getFXDigitalOptionSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "FX_DIGITAL_OPTION"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.option.FXOptionSecurity.accept()

  }

  @Test
  public void testFXOptionSecurity() {
    final FXOptionSecurity security = ExposureFunctionTestHelper.getFXOptionSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "FX_OPTION"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.option.FxFutureOptionSecurity.accept()

  }

  @Test
  public void testFXFutureOptionSecurity() {
    final FxFutureOptionSecurity security = ExposureFunctionTestHelper.getFXFutureOptionSecurity();
    final List<ExternalId> ids = security.accept(new SecurityTypeExposureFunction());
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "FXFUTURE_OPTION"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.option.IRFutureOptionSecurity.accept()

  }

  @Test
  public void testInterestRateFutureOptionSecurity() {
    final IRFutureOptionSecurity security = ExposureFunctionTestHelper.getInterestRateFutureOptionSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "IRFUTURE_OPTION"), ids.get(0));
  }

  @Test
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.