Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PublishingEventTest with variables #2270

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public class PublishingEventTest {
private static final Integer FAULT_COUNT = 1;
private static final Integer HASHCODE = 12345;
private static final Map<String, Object> PROPERTY_MAP = new HashMap<>();
private static final Map<String, Object> VARIABLE_MAP = new HashMap<>();

/**
* Initializing PublishingEvent before tests.
Expand All @@ -62,6 +63,8 @@ public static void init() {
statisticDataUnit.setTime(START_TIME);
PROPERTY_MAP.put("1", new Integer(1));
statisticDataUnit.setContextPropertyMap(PROPERTY_MAP);
VARIABLE_MAP.put("var1", new String("John"));
statisticDataUnit.setContextVariableMap(VARIABLE_MAP);
StatisticsLog statisticsLog = new StatisticsLog(statisticDataUnit);
statisticsLog.setComponentType(ComponentType.ENDPOINT);
statisticsLog.setComponentName(COMPONENT_NAME);
Expand Down Expand Up @@ -106,6 +109,7 @@ public void testGetObjectList() {
Assert.assertEquals("comparing stored values", objectList.get(index++), AFTER_PAYLOAD);
Assert.assertEquals("null since not initialized", objectList.get(index++), PROPERTY_MAP.toString());
Assert.assertNull("null since not initialized", objectList.get(index++));
Assert.assertEquals("comparing stored variables", VARIABLE_MAP.toString(), objectList.get(index++));
Assert.assertEquals("comparing stored values", objectList.get(index++), Arrays.toString(CHILDREN));
Assert.assertEquals("comparing stored values", objectList.get(index++), ENTRY_POINT);
Assert.assertEquals("comparing stored values", objectList.get(index++),
Expand Down
Loading