Package com.opengamma.web.analytics.rest

Examples of com.opengamma.web.analytics.rest.AggregatorNamesResource


  private static final String AGGREGATOR1 = "aggregator1";
  private static final String AGGREGATOR2 = "aggregator2";

  @Test
  public void getAggregatorNamesJson() throws JSONException {
    AggregatorNamesResource resource = new AggregatorNamesResource(ImmutableSet.of(AGGREGATOR1, AGGREGATOR2));
    JSONArray json = new JSONArray(resource.getAggregatorNamesJson());
    assertEquals(2, json.length());
    assertEquals(AGGREGATOR1, json.get(0));
    assertEquals(AGGREGATOR2, json.get(1));
  }
View Full Code Here


  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    final LongPollingConnectionManager longPolling = buildLongPolling();
    ChangeManager changeMgr = buildChangeManager();
    MasterChangeManager masterChangeMgr = buildMasterChangeManager();
    final ConnectionManagerImpl connectionMgr = new ConnectionManagerImpl(changeMgr, masterChangeMgr, longPolling);
    AggregatorNamesResource aggregatorsResource = new AggregatorNamesResource(getPortfolioAggregationFunctions().getMappedFunctions().keySet());
    MarketDataSnapshotListResource snapshotResource = new MarketDataSnapshotListResource(getMarketDataSnapshotMaster());
    MasterConfigSource configSource = new MasterConfigSource(getConfigMaster());

    AggregatedViewDefinitionManager aggregatedViewDefManager =
        new AggregatedViewDefinitionManager(getPositionSource(),
View Full Code Here

TOP

Related Classes of com.opengamma.web.analytics.rest.AggregatorNamesResource

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.