Skip to content

Commit

Permalink
#30443 fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdotcms committed Nov 19, 2024
1 parent 0a46466 commit 6304c95
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ public void fireCollectorsAndEmitEvent(HttpServletRequest request, HttpServletRe
RequestMatcher requestMatcher, Map<String, Serializable> userEventPayload) {

Assert.assertNotNull(userEventPayload);
Assert.assertEquals("page", userEventPayload.get("event_type"));
Assert.assertEquals("345", userEventPayload.get("id"));
Assert.assertEquals("page", userEventPayload.get(Collector.EVENT_TYPE));
Assert.assertEquals("345", userEventPayload.get(Collector.ID));

final Map<String, String> object = (Map<String, String>) userEventPayload.get("object");
final Map<String, String> object = (Map<String, String>) userEventPayload.get(Collector.OBJECT);
Assert.assertNotNull(object);
Assert.assertEquals("123", object.get("id"));
Assert.assertEquals("CONTENT", object.get("object_content_type_var_name"));
Assert.assertEquals("123", object.get(Collector.ID));
Assert.assertEquals("CONTENT", object.get(Collector.CONTENT_TYPE_VAR_NAME));
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ public void removeCollector(String collectorId) {
public void fireCollectorsAndEmitEvent(HttpServletRequest request, HttpServletResponse response, RequestMatcher requestMatcher, Map<String, Serializable> userEventPayload) {

Assert.assertNotNull(userEventPayload);
Assert.assertEquals("page", userEventPayload.get("event_type"));
Assert.assertEquals("123", userEventPayload.get("id"));
Assert.assertEquals("page", userEventPayload.get(Collector.EVENT_SOURCE));
Assert.assertEquals("123", userEventPayload.get(Collector.ID));

final Map<String, String> object = (Map<String, String>) userEventPayload.get("object");
final Map<String, String> object = (Map<String, String>) userEventPayload.get(Collector.OBJECT);
Assert.assertNotNull(object);
Assert.assertEquals("123", object.get("id"));
Assert.assertEquals("CONTENT", object.get("object_content_type_var_name"));
Assert.assertEquals("123", object.get(Collector.ID));
Assert.assertEquals("CONTENT", object.get(Collector.CONTENT_TYPE_VAR_NAME));
}
};
final AnalyticsFireUserEventActionlet analyticsFireUserEventActionlet = new AnalyticsFireUserEventActionlet(webEventsCollectorService);
Expand Down

0 comments on commit 6304c95

Please sign in to comment.