@Test public void testOneActivityTypeTwoActivities() throws Exception { addActivityEntry("A1", "assign", 10); addActivityEntry("A2", "assign", 1); ActivityMetricCoverage amc = new ActivityMetricCoverage(markers, markerMapping, markerCounter); List<ICoverageResult> result = amc.getCoverageResult(); assertEquals(4, result.size()); ICoverageResult currentResult = result.get(0); assertEquals(" assertEquals(10, currentResult.getExecutionCount()); assertEquals(10.0, currentResult.avg(), 0.001); assertEquals(10.0, currentResult.min(), 0.001); assertEquals(10.0, currentResult.max(), 0.001); assertEquals(1.0, currentResult.coverage(), 0.001); currentResult = result.get(1); assertEquals(" assertEquals(1, currentResult.getExecutionCount()); assertEquals(1.0, currentResult.avg(), 0.001); assertEquals(1.0, currentResult.min(), 0.001); assertEquals(1.0, currentResult.max(), 0.001); assertEquals(1.0, currentResult.coverage(), 0.001); currentResult = result.get(2); assertEquals(" assertEquals(11, currentResult.getExecutionCount()); assertEquals(5.5, currentResult.avg(), 0.001); assertEquals(1.0, currentResult.min(), 0.001); assertEquals(10.0, currentResult.max(), 0.001); assertEquals(1.0, currentResult.coverage(), 0.001); currentResult = result.get(3); assertEquals("Overall", currentResult.getBPELElementReference()); assertEquals(11, currentResult.getExecutionCount()); assertEquals(5.5, currentResult.avg(), 0.001); assertEquals(1.0, currentResult.min(), 0.001); assertEquals(10.0, currentResult.max(), 0.001); assertEquals(1.0, currentResult.coverage(), 0.001); }
public List<ICoverageResult> getCoverageResult() { return new ArrayList<ICoverageResult>(results); }
ActivityMetricCoverage implements IMetricCoverage { public List<ICoverageResult> getCoverageResult() { return new ArrayList<ICoverageResult>(results); } }
ActivityMetricCoverage implements IMetricCoverage { public List<ICoverageResult> getCoverageResult() { return new ArrayList<ICoverageResult>(results); } ActivityMetricCoverage(List<String> markers,
			Map<String, ? extends IActivity> markerMapping,
			Map<String, Integer> markerCounter); }
ActivityMetricCoverage implements IMetricCoverage { public List<ICoverageResult> getCoverageResult() { return new ArrayList<ICoverageResult>(results); } ActivityMetricCoverage(List<String> markers,
			Map<String, ? extends IActivity> markerMapping,
			Map<String, Integer> markerCounter); String getMetricName(); String getMetricId(); List<ICoverageResult> getCoverageResult(); }
ActivityMetricCoverage implements IMetricCoverage { public List<ICoverageResult> getCoverageResult() { return new ArrayList<ICoverageResult>(results); } ActivityMetricCoverage(List<String> markers,
			Map<String, ? extends IActivity> markerMapping,
			Map<String, Integer> markerCounter); String getMetricName(); String getMetricId(); List<ICoverageResult> getCoverageResult();  }