Examples of enhanceSecurities()


Examples of com.opengamma.provider.security.SecurityEnhancer.enhanceSecurities()

      protected SecurityEnhancerResult doBulkEnhance(SecurityEnhancerRequest request) {
        invoked[0]++;
        return new SecurityEnhancerResult(request.getSecurities());
      }
    };
    List<Security> result = test.enhanceSecurities(Arrays.<Security>asList(SECURITY1, SECURITY2));
    assertEquals(Arrays.asList(SECURITY1, SECURITY2), result);
    assertEquals(1, invoked[0]);
  }

  @Test
View Full Code Here

Examples of com.opengamma.provider.security.SecurityEnhancer.enhanceSecurities()

      }
    };
    Map<String, Security> map = new HashMap<>();
    map.put("A", SECURITY1);
    map.put("B", SECURITY2);
    Map<String, Security> result = test.enhanceSecurities(map);
    assertEquals(map, result);
    assertEquals(1, invoked[0]);
  }

  @Test
View Full Code Here

Examples of com.opengamma.provider.security.SecurityEnhancer.enhanceSecurities()

        invoked[0]++;
        return new SecurityEnhancerResult(request.getSecurities());
      }
    };
    SecurityEnhancerRequest request = SecurityEnhancerRequest.create(SECURITY1, SECURITY2);
    SecurityEnhancerResult result = test.enhanceSecurities(request);
    assertEquals(Arrays.asList(SECURITY1, SECURITY2), result.getResultList());
    assertEquals(1, invoked[0]);
  }

}
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.