fileToCheck,
new File(baseDir, "sensortests/main/Person.js"),
new File(baseDir, "sensortests/test/PersonTest.js")));
when(context.getMeasure(org.sonar.api.resources.File.fromIOFile(fileToCheck, project), CoreMetrics.LINES)).thenReturn(
new Measure(CoreMetrics.LINES, (double) 20));
when(context.getMeasure(org.sonar.api.resources.File.fromIOFile(fileToCheck, project), CoreMetrics.NCLOC)).thenReturn(
new Measure(CoreMetrics.LINES, (double) 22));
sensor.analyse(project, context);
verify(context).saveMeasure((Resource) anyObject(), eq(CoreMetrics.LINES_TO_COVER), eq(22.0));
verify(context).saveMeasure((Resource) anyObject(), eq(CoreMetrics.UNCOVERED_LINES), eq(22.0));