@SuppressWarnings({"rawtypes"}) @Test public void testGetAttachemts() throws ParseException { SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy"); // Date validAtDate = formatter.parse("8/26/2011"); Date validAtDate = new Date(); Date asOfDate = new Date(); System.out.println("TemporalReferenceGetAttachmentsTest.testGetAttachemts()"); System.out.println("--------------------------------------------------------"); portfolioBiz.setReference(true); AttachmentSet<String> as = new AttachmentSetFactory().createAttachmentSet(); HashSet<String> set = new HashSet<String>(); set.add("a"); set.add("ab"); as.setAttachments(set); long startTime = System.currentTimeMillis(); as.setGridPath("portfolio"); List<KeyMap> list = portfolioBiz.getAttachments(as, validAtDate.getTime()); long delta = System.currentTimeMillis() - startTime; for (KeyMap keyMap : list) { JsonLite jl = (JsonLite) keyMap; System.out.println(jl.toString(2, true, false)); } System.out.println(); System.out.println("Elapsed time (msec): " + delta); System.out.println(); }