Package com.opengamma.util.db

Examples of com.opengamma.util.db.DbConnector.now()


  public void test_clock() {
    DbConnector dbConnector = getDbConnector();
    List<Instant> instants1 = Lists.newArrayList();
    int[] times = new int[50000];
    for (int i = 0; i < times.length; i++) {
      instants1.add(dbConnector.now());
    }
    List<Instant> instants2 = new ArrayList<>(instants1);
    Collections.sort(instants2);
    assertEquals(instants1, instants2);
  }
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.