Examples of accept()


Examples of com.opengamma.financial.security.cds.StandardRecoveryLockCDSSecurity.accept()

  }

  @Test
  public void testStandardRecoveryLockCDSSecurity() {
    final StandardRecoveryLockCDSSecurity security = ExposureFunctionTestHelper.getStandardRecoveryLockCDSSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "STANDARD_RECOVERY_LOCK_CDS"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.cds.StandardVanillaCDSSecurity.accept()

  }

  @Test
  public void testStandardVanillaCDSSecurity() {
    final StandardVanillaCDSSecurity security = ExposureFunctionTestHelper.getStandardVanillaCDSSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "STANDARD_VANILLA_CDS"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.deposit.ContinuousZeroDepositSecurity.accept()

  }

  @Test
  public void testContinuousZeroDepositSecurity() {
    final ContinuousZeroDepositSecurity security = ExposureFunctionTestHelper.getContinuousZeroDepositSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "CONTINUOUS_ZERO_DEPOSIT"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.deposit.PeriodicZeroDepositSecurity.accept()

  }

  @Test
  public void testPeriodicZeroDepositSecurity() {
    final PeriodicZeroDepositSecurity security = ExposureFunctionTestHelper.getPeriodicZeroDepositSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "PERIODIC_ZERO_DEPOSIT"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.deposit.SimpleZeroDepositSecurity.accept()

  }

  @Test
  public void testSimpleZeroDepositSecurity() {
    final SimpleZeroDepositSecurity security = ExposureFunctionTestHelper.getSimpleZeroDepositSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "SIMPLE_ZERO_DEPOSIT"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.equity.EquitySecurity.accept()

  }

  @Test
  public void testEquitySecurity() {
    final EquitySecurity security = ExposureFunctionTestHelper.getEquitySecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "EQUITY"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.equity.EquityVarianceSwapSecurity.accept()

  }

  @Test
  public void testEquityVarianceSwapSecurity() {
    final EquityVarianceSwapSecurity security = ExposureFunctionTestHelper.getEquityVarianceSwapSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "EQUITY VARIANCE SWAP"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.forward.AgricultureForwardSecurity.accept()

  }

  @Test
  public void testAgricultureForwardSecurity() {
    final AgricultureForwardSecurity security = ExposureFunctionTestHelper.getAgricultureForwardSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "COMMODITY_FORWARD"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.forward.EnergyForwardSecurity.accept()

  }

  @Test
  public void testEnergyForwardSecurity() {
    final EnergyForwardSecurity security = ExposureFunctionTestHelper.getEnergyForwardSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "COMMODITY_FORWARD"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.forward.MetalForwardSecurity.accept()

  }

  @Test
  public void testMetalForwardSecurity() {
    final MetalForwardSecurity security = ExposureFunctionTestHelper.getMetalForwardSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "COMMODITY_FORWARD"), 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.