/** * Checks whether the passed {@link #InvocationSequenceData} is a <code>Root * Cause</code>. * * @param invocation * The {@link InvocationSequenceData} that is investigated. * @return Whether the {@link InvocationSequenceData} is a <code>Root Cause</code>. */ private boolean isCauseInvocation(InvocationSequenceData invocation) { Object key = diagnosisDataAggregator.getAggregationKey(invocation); if (key.equals(rootCause.getAggregationKey())) { return true; } return false; }
when(rootCause.size()).thenReturn(2); Pair<Long, String> pair = new Pair<Long, String>(detectedProblemContext.getNestedSequences().get(0).getMethodIdent(), "n.a."); when(rootCause.getAggregationKey()).thenReturn(pair); when(problemContext.getCommonContext()).thenReturn(commonContext); when(commonContext.getParentSequence()).thenReturn(null);
when(rootCause.size()).thenReturn(2); when(rootCause.getAggregatedDiagnosisTimerData()).thenReturn(aggregatedTimerData); when(rootCause.getAggregationKey()).thenReturn(detectedProblemContext.getNestedSequences().get(0).getMethodIdent()); when(problemContext.getCommonContext()).thenReturn(commonContext); when(commonContext.getParentSequence()).thenReturn(null);
when(rootCause.size()).thenReturn(2); Pair<Long, String> pair = new Pair<Long, String>(detectedProblemContext.getNestedSequences().get(0).getMethodIdent(), "somethingsomething"); when(rootCause.getAggregationKey()).thenReturn(pair); when(problemContext.getCommonContext()).thenReturn(commonContext); when(commonContext.getParentSequence()).thenReturn(null);