Skip to content
Snippets Groups Projects
Commit 596adb8c authored by Florian Fittkau's avatar Florian Fittkau
Browse files

fixed tests

parent a94d6bb7
Branches
Tags
No related merge requests found
...@@ -34,6 +34,8 @@ public class IterationFilter extends AbstractReductionFilter implements ITraceRe ...@@ -34,6 +34,8 @@ public class IterationFilter extends AbstractReductionFilter implements ITraceRe
.get(i + 2); .get(i + 2);
if (firstBeforeEvent.compareTo(secondBeforeEvent) == 0) { if (firstBeforeEvent.compareTo(secondBeforeEvent) == 0) {
if (traceEvents.get(i + 3) instanceof AbstractAfterEventRecord) { if (traceEvents.get(i + 3) instanceof AbstractAfterEventRecord) {
secondBeforeEvent.getRuntimeStatisticInformation().makeAccumulator(
0);
secondBeforeEvent.getRuntimeStatisticInformation().merge( secondBeforeEvent.getRuntimeStatisticInformation().merge(
firstBeforeEvent.getRuntimeStatisticInformation(), firstBeforeEvent.getRuntimeStatisticInformation(),
firstBeforeEvent.getObjectId()); firstBeforeEvent.getObjectId());
......
...@@ -29,6 +29,8 @@ public class IterationFilterTest { ...@@ -29,6 +29,8 @@ public class IterationFilterTest {
beforeEvent.setRuntimeStatisticInformation(new RuntimeStatisticInformation(11L)); beforeEvent.setRuntimeStatisticInformation(new RuntimeStatisticInformation(11L));
traceEvents.add(beforeEvent); traceEvents.add(beforeEvent);
beforeEvent.getRuntimeStatisticInformation().makeAccumulator(0);
final BeforeOperationEventRecord beforeEvent1 = new BeforeOperationEventRecord(2L, 1L, 1, final BeforeOperationEventRecord beforeEvent1 = new BeforeOperationEventRecord(2L, 1L, 1,
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("testSystem", 0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application")); "testIp", "host", "application"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment