assertFalse(lcov.canLoad());
}
public void testAddJsWithExistingFiles() throws Exception {
LinkedList<FileInfo> files = new LinkedList<FileInfo>();
FileInfo expected = new FileInfo("foo.js", 1, -1, false, false, null, "foo.js");
files.add(expected);
String lcovSource = "lcov";
List<FileInfo> processed = new CoverageJsAdder(
new FileLoaderStub(lcovSource),
new CoverageNameMapper()).processPlugins(files);
FileInfo lcov = processed.get(0);
assertEquals(
new LoadedFileInfo(CoverageJsAdder.LCOV_JS, -1, false, false, lcovSource),
lcov);
assertEquals(lcovSource, lcov.getData());
assertFalse(lcov.canLoad());
assertSame(expected, processed.get(1));
}