Package com.opengamma.financial.fudgemsg

Source Code of com.opengamma.financial.fudgemsg.FuturePriceCurveSpecificationFudgeEncodingTest

/**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.fudgemsg;

import static org.testng.AssertJUnit.assertEquals;

import org.testng.annotations.Test;

import com.opengamma.core.value.MarketDataRequirementNames;
import com.opengamma.financial.analytics.volatility.surface.BloombergIRFuturePriceCurveInstrumentProvider;
import com.opengamma.financial.analytics.volatility.surface.FuturePriceCurveInstrumentProvider;
import com.opengamma.financial.analytics.volatility.surface.FuturePriceCurveSpecification;
import com.opengamma.util.money.Currency;
import com.opengamma.util.test.TestGroup;

/**
* Test.
*/
@Test(groups = TestGroup.UNIT)
public class FuturePriceCurveSpecificationFudgeEncodingTest extends FinancialTestBase {

  private static final String NAME = "SN";
  private static final Currency UID = Currency.USD;
  private static final FuturePriceCurveInstrumentProvider<?> PROVIDER = new BloombergIRFuturePriceCurveInstrumentProvider("ED", "Comdty",
      MarketDataRequirementNames.MARKET_VALUE,"BLOOMBERG_TICKER_WEAK");

  @Test
  public void testCycle() {
    final FuturePriceCurveSpecification specification = new FuturePriceCurveSpecification(NAME, UID, PROVIDER);
    assertEquals(specification, cycleObject(FuturePriceCurveSpecification.class, specification));
  }
}
TOP

Related Classes of com.opengamma.financial.fudgemsg.FuturePriceCurveSpecificationFudgeEncodingTest

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.