assertEquals(Position.AFTER, new CoverageTracingLogger(sourceCallbackMock).getPosition());
}
@Test
public void testLogForSources() throws Exception {
Source source1 = new Source("Source1.java", "public class Source1 {\n \n}\n");
source1.addCoverage(1, 0);
source1.addCoverage(2, 0);
source1.addCoverage(3, 0);
Source source2 = new Source("Source2.java", "public class Source2 {\n new Interface() { public void run() { } };\n}\n");
source2.addCoverage(1, 1);
source2.addCoverage(2, 1);
source2.addCoverage(3, 1);
Source source2inner = new Source("Source2.java", "public class Source2 {\n new Interface() { public void run() { } };\n}\n");
source2inner.setClassifier("$1");
source2inner.addCoverage(2, 1);
CoverageTracingLogger coverageTracingLogger = new CoverageTracingLogger(sourceCallbackMock);
coverageTracingLogger.onSource(source1);
coverageTracingLogger.onSource(source2);
coverageTracingLogger.onSource(source2inner);