Examples of ObjectIdSupplier


Examples of com.opengamma.id.ObjectIdSupplier

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

Examples of com.opengamma.id.ObjectIdSupplier

   * Creates an instance.
   *
   * @param defaultOidScheme  the default object identifier scheme, not null
   */
  public SimpleAbstractInMemoryMaster(String defaultOidScheme) {
    this(new ObjectIdSupplier(defaultOidScheme));
  }
View Full Code Here

Examples of com.opengamma.id.ObjectIdSupplier

   *
   * @param defaultOidScheme  the default object identifier scheme, not null
   * @param changeManager  the change manager, not null
   */
  public SimpleAbstractInMemoryMaster(String defaultOidScheme, final ChangeManager changeManager) {
    this(new ObjectIdSupplier(defaultOidScheme), changeManager);
  }
View Full Code Here

Examples of com.opengamma.id.ObjectIdSupplier

    assertEquals("MemPos", added.getUniqueId().getScheme());
  }

  //-------------------------------------------------------------------------
  public void test_alternateSupplier() {
    final InMemoryPositionMaster master = new InMemoryPositionMaster(new ObjectIdSupplier("Hello"));
    final PositionDocument added = master.add(new PositionDocument(_pos1.getPosition()));
    assertEquals("Hello", added.getUniqueId().getScheme());
  }
View Full Code Here

Examples of com.opengamma.id.ObjectIdSupplier

  private MarketDataSnapshotDocument _doc1;
  private MarketDataSnapshotDocument _doc2;

  @BeforeMethod
  public void setUp() {
    _testEmpty = new InMemorySnapshotMaster(new ObjectIdSupplier("Test"));
    _testPopulated = new InMemorySnapshotMaster(new ObjectIdSupplier("Test"));
    _doc1 = new MarketDataSnapshotDocument();
    _doc1.setSnapshot(SNAP1);
    _doc1 = _testPopulated.add(_doc1);
    _doc2 = new MarketDataSnapshotDocument();
    _doc2.setSnapshot(SNAP2);
View Full Code Here

Examples of com.opengamma.id.ObjectIdSupplier

    MarketDataSnapshotDocument added = master.add(doc);
    assertEquals("MemSnap", added.getUniqueId().getScheme());
  }

  public void test_alternateSupplier() {
    InMemorySnapshotMaster master = new InMemorySnapshotMaster(new ObjectIdSupplier("Hello"));
    MarketDataSnapshotDocument doc = new MarketDataSnapshotDocument();
    doc.setSnapshot(SNAP1);
    MarketDataSnapshotDocument added = master.add(doc);
    assertEquals("Hello", added.getUniqueId().getScheme());
  }
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.