Package com.opengamma.engine.fudgemsg

Source Code of com.opengamma.engine.fudgemsg.ValueSpecificationBuilderTest

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

import org.testng.annotations.Test;

import com.opengamma.engine.ComputationTargetSpecification;
import com.opengamma.engine.value.ValueProperties;
import com.opengamma.engine.value.ValuePropertyNames;
import com.opengamma.engine.value.ValueSpecification;
import com.opengamma.util.money.Currency;
import com.opengamma.util.test.AbstractFudgeBuilderTestCase;
import com.opengamma.util.test.TestGroup;

/**
* Test.
*/
@Test(groups = TestGroup.UNIT)
public class ValueSpecificationBuilderTest extends AbstractFudgeBuilderTestCase {

  public void testEncoding() {
    assertEncodeDecodeCycle(ValueSpecification.class,
        new ValueSpecification("requirement", ComputationTargetSpecification.of(Currency.USD),
            ValueProperties.with(ValuePropertyNames.FUNCTION, "Bar").get()));
  }

}
TOP

Related Classes of com.opengamma.engine.fudgemsg.ValueSpecificationBuilderTest

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.