@Test public void testTwoActivityTypesTwoActivitiesEachNot100Percent() throws Exception { addActivityEntry("E1", "empty", 20); addActivityEntry("A1", "assign", 10); addActivityEntry("A2", "assign", 0); addActivityEntry("E2", "empty", 0); ActivityMetricCoverage amc = new ActivityMetricCoverage(markers, markerMapping, markerCounter); List<ICoverageResult> result = amc.getCoverageResult(); assertEquals(7, result.size()); ICoverageResult currentResult = result.get(1); assertEquals(" assertEquals(1.0, currentResult.coverage(), 0.001); currentResult = result.get(2); assertEquals(" assertEquals(0.0, currentResult.coverage(), 0.001); currentResult = result.get(0); assertEquals(" assertEquals(1.0, currentResult.coverage(), 0.001); currentResult = result.get(3); assertEquals(" assertEquals(0.0, currentResult.coverage(), 0.001); currentResult = result.get(4); assertEquals(" assertEquals(0.5, currentResult.coverage(), 0.001); currentResult = result.get(5); assertEquals(" assertEquals(0.5, currentResult.coverage(), 0.001); currentResult = result.get(6); assertEquals("Overall", currentResult.getBPELElementReference()); assertEquals(0.5, 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();  }