@Test public void parse() { Map<Application.Name, List<List<String>>> body = new HashMap<Application.Name, List<List<String>>>(); List<List<String>> sub1 = new ArrayList<List<String>>(); List<String> subSub1 = new ArrayList<String>(); subSub1.add(null); sub1.add(subSub1); body.put(TESTAPP, sub1); ImpressionsActionsResourceParser.parse(body); assertNotNull(subSub1.get(0)); }
static void parse(Map<Application.Name, List<List<String>>> body) { Date now = new Date(); DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXX"); String timestamp = df.format(now); for (List<List<String>> submissions : body.values()) { for (List<String> submission : submissions) { if (submission.get(0) == null) { submission.set(0, timestamp); } } } }
ImpressionsActionsResourceParser { static void parse(Map<Application.Name, List<List<String>>> body) { Date now = new Date(); DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXX"); String timestamp = df.format(now); for (List<List<String>> submissions : body.values()) { for (List<String> submission : submissions) { if (submission.get(0) == null) { submission.set(0, timestamp); } } } } }
ImpressionsActionsResourceParser { static void parse(Map<Application.Name, List<List<String>>> body) { Date now = new Date(); DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXX"); String timestamp = df.format(now); for (List<List<String>> submissions : body.values()) { for (List<String> submission : submissions) { if (submission.get(0) == null) { submission.set(0, timestamp); } } } } private  ImpressionsActionsResourceParser(); }
ImpressionsActionsResourceParser { static void parse(Map<Application.Name, List<List<String>>> body) { Date now = new Date(); DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXX"); String timestamp = df.format(now); for (List<List<String>> submissions : body.values()) { for (List<String> submission : submissions) { if (submission.get(0) == null) { submission.set(0, timestamp); } } } } private  ImpressionsActionsResourceParser();  }
ImpressionsActionsResourceParser { static void parse(Map<Application.Name, List<List<String>>> body) { Date now = new Date(); DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXX"); String timestamp = df.format(now); for (List<List<String>> submissions : body.values()) { for (List<String> submission : submissions) { if (submission.get(0) == null) { submission.set(0, timestamp); } } } } private  ImpressionsActionsResourceParser();   }