Skip to content
Snippets Groups Projects
Commit c9b0ab90 authored by Andrea Burattin's avatar Andrea Burattin
Browse files

Fixed code smell

parent 042ad922
Branches
Tags
No related merge requests found
...@@ -33,7 +33,7 @@ public class EventTest { ...@@ -33,7 +33,7 @@ public class EventTest {
assertThrows(EventException.class, () -> BEvent.create(null, "", "")); assertThrows(EventException.class, () -> BEvent.create(null, "", ""));
BEvent e = BEvent.create(processName, traceName, eventName, eventDate, Set.of(Pair.of("a1", "v1"))); BEvent e = BEvent.create(processName, traceName, eventName, eventDate, Set.of(Pair.of("a1", "v1")));
assertEquals(e.getEventAttributes().get("a1"), "v1"); assertEquals("v1", e.getEventAttributes().get("a1"));
} }
@Test @Test
...@@ -86,11 +86,11 @@ public class EventTest { ...@@ -86,11 +86,11 @@ public class EventTest {
e.setEventAttribute("ea2", new XAttributeContinuousImpl("ea2", 3.14)); e.setEventAttribute("ea2", new XAttributeContinuousImpl("ea2", 3.14));
e.setEventAttribute("ea3", new XAttributeTimestampImpl("ea3", date)); e.setEventAttribute("ea3", new XAttributeTimestampImpl("ea3", date));
assertEquals(e.getProcessAttributes().get("pa"), "v1"); assertEquals("v1", e.getProcessAttributes().get("pa"));
assertEquals(e.getTraceAttributes().get("ta"), false); assertEquals(false, e.getTraceAttributes().get("ta"));
assertEquals(e.getEventAttributes().get("ea"), 42l); assertEquals(42l, e.getEventAttributes().get("ea"));
assertEquals(e.getEventAttributes().get("ea2"), 3.14); assertEquals(3.14, e.getEventAttributes().get("ea2"));
assertEquals(e.getEventAttributes().get("ea3"), date); assertEquals(date, e.getEventAttributes().get("ea3"));
} }
@Test @Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment