Package com.opengamma.batch

Examples of com.opengamma.batch.BatchMasterWriter


  }

  @SuppressWarnings("unchecked")
  @Test(expectedExceptions = com.opengamma.DataNotFoundException.class)
  public void testBatchRunDataNotFound() throws Exception {
    BatchMasterWriter batchMaster = mock(BatchMasterWriter.class);
    when(batchMaster.getRiskRun((ObjectId) any())).thenThrow(DataNotFoundException.class);
   
    DataBatchMasterResource batchMasterResource = new DataBatchMasterResource(batchMaster);   
   
    String batchUid = "Scheme~MockUniqueId";
    DataBatchRunResource batchRunResource = batchMasterResource.batchRuns(batchUid);
View Full Code Here

TOP

Related Classes of com.opengamma.batch.BatchMasterWriter

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.