Examples of ObjectIdSupplier


Examples of com.opengamma.id.ObjectIdSupplier

  @BeforeMethod(groups = TestGroup.UNIT)
  public void setUp() throws Exception {
    _uriInfo = new MockUriInfo();
    _trades = getTrades();
    _secMaster = new InMemorySecurityMaster(new ObjectIdSupplier("Mock"));
    _positionMaster = new InMemoryPositionMaster();
    final MasterConfigSource configSource = new MasterConfigSource(new InMemoryConfigMaster());
    final InMemoryHistoricalTimeSeriesMaster htsMaster = new InMemoryHistoricalTimeSeriesMaster();
    final HistoricalTimeSeriesResolver htsResolver = new DefaultHistoricalTimeSeriesResolver(new DefaultHistoricalTimeSeriesSelector(configSource), htsMaster);
    _htsSource = new MasterHistoricalTimeSeriesSource(htsMaster, htsResolver);
View Full Code Here

Examples of com.opengamma.id.ObjectIdSupplier

  private ConfigItem<ExternalIdBundle> _item4;

  @SuppressWarnings("unchecked")
  @BeforeMethod
  public void setUp() {
    _testEmpty = new InMemoryConfigMaster(new ObjectIdSupplier("Test"));
    _testPopulated = new InMemoryConfigMaster(new ObjectIdSupplier("Test"));
    _item1 = ConfigItem.of(VAL1);
    _item1.setName("ONE");
    _item1 = (ConfigItem<ExternalId>) _testPopulated.add(new ConfigDocument(_item1)).getConfig();
    _item2 = ConfigItem.of(VAL2);
    _item2.setName("TWO");
View Full Code Here

Examples of com.opengamma.id.ObjectIdSupplier

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

  @SuppressWarnings("unchecked")
  public void test_alternateSupplier() {
    InMemoryConfigMaster master = new InMemoryConfigMaster(new ObjectIdSupplier("Hello"));
    ConfigItem<ExternalId> item = ConfigItem.of(VAL1);
    item.setName("ONE");
    ConfigItem<ExternalId> added = (ConfigItem<ExternalId>) master.add(new ConfigDocument(item)).getConfig();
    assertEquals("Hello", added.getUniqueId().getScheme());
  }
View Full Code Here

Examples of com.opengamma.id.ObjectIdSupplier

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

Examples of com.opengamma.id.ObjectIdSupplier

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

Examples of com.opengamma.id.ObjectIdSupplier

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

Examples of com.opengamma.id.ObjectIdSupplier

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

Examples of com.opengamma.id.ObjectIdSupplier

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

Examples of com.opengamma.id.ObjectIdSupplier

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

Examples of com.opengamma.id.ObjectIdSupplier

  /**
   * Creates an instance.
   */
  public InMemoryRegionMaster() {
    this(new ObjectIdSupplier(DEFAULT_OID_SCHEME));
  }
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.