Package com.opengamma.livedata

Examples of com.opengamma.livedata.LiveDataValueUpdate


    long sequenceNumber = 12345;
    distributor.notifyListeners(new LiveDataValueUpdateBean(sequenceNumber, spec1, _fudgeContext.newMessage()));
   
    List<LiveDataValueUpdate> updates = listener1.getValueUpdates();
    assertEquals(1, updates.size());
    LiveDataValueUpdate update = updates.get(0);
    assertEquals(sequenceNumber, update.getSequenceNumber());
    assertEquals(spec1, update.getSpecification());
    assertNotNull(update.getFields());
  }
View Full Code Here


    _server.sendLiveDataToClient();
   
    // Snapshot x 2, subscription data x 2 = 4 overall
    assertEquals(4, listener.getValueUpdates().size());
    for (int i = 0; i < listener.getValueUpdates().size(); i++) {
      LiveDataValueUpdate update = listener.getValueUpdates().get(i);
      if (update.getSpecification().equals(spec1)) {
        assertEquals(_testMsgs[0], update.getFields());
      } else if (update.getSpecification().equals(spec2)) {
        assertEquals(_testMsgs[1], update.getFields());
      } else {
        Assert.fail("Response for non-existent spec received");
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.opengamma.livedata.LiveDataValueUpdate

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.