@Test public void testNullProductExpansion() throws Exception { assertNotNull(CommerceEventUtils.expand(null)); assertEquals(0, CommerceEventUtils.expand(null).size()); }
public static List<MPEvent> expand(CommerceEvent event) { List<MPEvent> eventList = new LinkedList<MPEvent>(); if (event == null) { return eventList; } eventList.addAll(expandProductAction(event)); eventList.addAll(expandPromotionAction(event)); eventList.addAll(expandProductImpression(event)); return eventList; }
CommerceEventUtils { public static List<MPEvent> expand(CommerceEvent event) { List<MPEvent> eventList = new LinkedList<MPEvent>(); if (event == null) { return eventList; } eventList.addAll(expandProductAction(event)); eventList.addAll(expandPromotionAction(event)); eventList.addAll(expandProductImpression(event)); return eventList; } }
CommerceEventUtils { public static List<MPEvent> expand(CommerceEvent event) { List<MPEvent> eventList = new LinkedList<MPEvent>(); if (event == null) { return eventList; } eventList.addAll(expandProductAction(event)); eventList.addAll(expandPromotionAction(event)); eventList.addAll(expandProductImpression(event)); return eventList; } private  CommerceEventUtils(); }
CommerceEventUtils { public static List<MPEvent> expand(CommerceEvent event) { List<MPEvent> eventList = new LinkedList<MPEvent>(); if (event == null) { return eventList; } eventList.addAll(expandProductAction(event)); eventList.addAll(expandPromotionAction(event)); eventList.addAll(expandProductImpression(event)); return eventList; } private  CommerceEventUtils(); static List<MPEvent> expand(CommerceEvent event); static List<MPEvent> expandProductAction(CommerceEvent event); static void extractProductFields(Product product, Map<String, String> attributes); static void extractProductFields(Product product, OnAttributeExtracted onAttributeExtracted); static void extractProductAttributes(Product product, Map<String, String> attributes); static void extractProductAttributes(Product product, OnAttributeExtracted onAttributeExtracted); static void extractActionAttributes(CommerceEvent event, Map<String, String> attributes); static void extractActionAttributes(CommerceEvent event, OnAttributeExtracted onAttributeExtracted); static Map<String, String> extractTransactionAttributes(CommerceEvent event, Map<String, String> attributes); static void extractTransactionAttributes(CommerceEvent event, OnAttributeExtracted onAttributeExtracted); static List<MPEvent> expandPromotionAction(CommerceEvent event); static void extractPromotionAttributes(Promotion promotion, Map<String, String> attributes); static void extractPromotionAttributes(Promotion promotion, OnAttributeExtracted onAttributeExtracted); static List<MPEvent> expandProductImpression(CommerceEvent event); static String getEventTypeString(CommerceEvent filteredEvent); static int getEventType(CommerceEvent filteredEvent); }
CommerceEventUtils { public static List<MPEvent> expand(CommerceEvent event) { List<MPEvent> eventList = new LinkedList<MPEvent>(); if (event == null) { return eventList; } eventList.addAll(expandProductAction(event)); eventList.addAll(expandPromotionAction(event)); eventList.addAll(expandProductImpression(event)); return eventList; } private  CommerceEventUtils(); static List<MPEvent> expand(CommerceEvent event); static List<MPEvent> expandProductAction(CommerceEvent event); static void extractProductFields(Product product, Map<String, String> attributes); static void extractProductFields(Product product, OnAttributeExtracted onAttributeExtracted); static void extractProductAttributes(Product product, Map<String, String> attributes); static void extractProductAttributes(Product product, OnAttributeExtracted onAttributeExtracted); static void extractActionAttributes(CommerceEvent event, Map<String, String> attributes); static void extractActionAttributes(CommerceEvent event, OnAttributeExtracted onAttributeExtracted); static Map<String, String> extractTransactionAttributes(CommerceEvent event, Map<String, String> attributes); static void extractTransactionAttributes(CommerceEvent event, OnAttributeExtracted onAttributeExtracted); static List<MPEvent> expandPromotionAction(CommerceEvent event); static void extractPromotionAttributes(Promotion promotion, Map<String, String> attributes); static void extractPromotionAttributes(Promotion promotion, OnAttributeExtracted onAttributeExtracted); static List<MPEvent> expandProductImpression(CommerceEvent event); static String getEventTypeString(CommerceEvent filteredEvent); static int getEventType(CommerceEvent filteredEvent);  }