Package com.opengamma.id

Examples of com.opengamma.id.ObjectIdSupplier


  /**
   * Creates an instance.
   */
  public InMemoryHolidayMaster() {
    this(new ObjectIdSupplier(DEFAULT_OID_SCHEME));
  }
View Full Code Here


   * Creates an instance specifying the change manager.
   *
   * @param changeManager  the change manager, not null
   */
  public InMemoryHolidayMaster(final ChangeManager changeManager) {
    this(new ObjectIdSupplier(DEFAULT_OID_SCHEME), changeManager);
  }
View Full Code Here

  private SecurityDocument doc1;
  private SecurityDocument doc2;

  @BeforeMethod
  public void setUp() {
    testEmpty = new InMemorySecurityMaster(new ObjectIdSupplier("Test"));
    testPopulated = new InMemorySecurityMaster(new ObjectIdSupplier("Test"));
    doc1 = new SecurityDocument();
    doc1.setSecurity(SEC1);
    doc1 = testPopulated.add(doc1);
    doc2 = new SecurityDocument();
    doc2.setSecurity(SEC2);
View Full Code Here

    SecurityDocument added = master.add(doc);
    assertEquals("MemSec", added.getUniqueId().getScheme());
  }

  public void test_alternateSupplier() {
    InMemorySecurityMaster master = new InMemorySecurityMaster(new ObjectIdSupplier("Hello"));
    SecurityDocument doc = new SecurityDocument();
    doc.setSecurity(SEC1);
    SecurityDocument added = master.add(doc);
    assertEquals("Hello", added.getUniqueId().getScheme());
  }
View Full Code Here

  /**
   * Creates an instance.
   */
  public InMemoryConfigMaster() {
    this(new ObjectIdSupplier(InMemoryConfigMaster.DEFAULT_OID_SCHEME));
  }
View Full Code Here

   * Creates an instance specifying the change manager.
   *
   * @param changeManager the change manager, not null
   */
  public InMemoryConfigMaster(final ChangeManager changeManager) {
    this(new ObjectIdSupplier(InMemoryConfigMaster.DEFAULT_OID_SCHEME), changeManager);
  }
View Full Code Here

  private ManageableHistoricalTimeSeriesInfo info1;
  private ManageableHistoricalTimeSeriesInfo info2;

  @BeforeMethod
  public void setUp() {
    testEmpty = new InMemoryHistoricalTimeSeriesMaster(new ObjectIdSupplier("Test"));
    testPopulated = new InMemoryHistoricalTimeSeriesMaster(new ObjectIdSupplier("Test"));
    info1 = new ManageableHistoricalTimeSeriesInfo();
    info1.setName("Name1");
    info1.setDataField("DF1");
    info1.setDataSource("DS1");
    info1.setDataProvider("DP1");
View Full Code Here

    HistoricalTimeSeriesInfoDocument added = master.add(doc);
    assertEquals("MemHts", added.getUniqueId().getScheme());
  }

  public void test_alternateSupplier() {
    InMemoryHistoricalTimeSeriesMaster master = new InMemoryHistoricalTimeSeriesMaster(new ObjectIdSupplier("Hello"));
    HistoricalTimeSeriesInfoDocument doc = new HistoricalTimeSeriesInfoDocument();
    doc.setInfo(info1);
    HistoricalTimeSeriesInfoDocument added = master.add(doc);
    assertEquals("Hello", added.getUniqueId().getScheme());
  }
View Full Code Here

    assertEquals("MemPrt", added.getUniqueId().getScheme());
  }
 
  @Test
  public void test_alternateSupplier() {
    InMemoryPortfolioMaster master = new InMemoryPortfolioMaster(new ObjectIdSupplier("Hello"));
    PortfolioDocument added = master.add(new PortfolioDocument(generatePortfolio()));
    assertEquals("Hello", added.getUniqueId().getScheme());
  }
View Full Code Here

  /**
   * Creates an instance.
   */
  public InMemorySnapshotMaster() {
    this(new ObjectIdSupplier(DEFAULT_OID_SCHEME));
  }
View Full Code Here

TOP

Related Classes of com.opengamma.id.ObjectIdSupplier

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.