torsdag 11 december 2008 05:58:41 skrev Shawn O. Pearce: > Most patch scripts impact more than one file at a time, so we need > to support parsing multiple FileHeaders from the same input stream > and collect them into a larger entity representing the entire script. ... > + public void testParse_ConfigCaseInsensitive() throws IOException { > + final Patch p = parseTestPatchFile(); > + assertEquals(2, p.getFiles().size()); > + > + final FileHeader fRepositoryConfigTest = p.getFiles().get(0); > + final FileHeader fRepositoryConfig = p.getFiles().get(1); > + > + assertEquals( > + "org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryConfigTest.java", > + fRepositoryConfigTest.getNewName()); > + > + assertEquals( > + "org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java", > + fRepositoryConfig.getNewName()); > + > + assertEquals(572, fRepositoryConfigTest.startOffset); > + assertEquals(1490, fRepositoryConfig.startOffset); 1487 here -- robin -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html