b.getString(0, b.size(), false));
}
+ @Test
+ public void testAddA1Sub() throws Exception {
+ ApplyResult result = init("A1_sub", false, false);
+ assertEquals(1, result.getUpdatedFiles().size());
+ assertEquals(new File(db.getWorkTree(), "sub/A1"), result
+ .getUpdatedFiles().get(0));
+ }
+
@Test
public void testDeleteD() throws Exception {
ApplyResult result = init("D", true, false);
File f = new File(getRepository().getWorkTree(), path);
if (create)
try {
+ File parent = f.getParentFile();
+ FileUtils.mkdirs(parent, true);
FileUtils.createNewFile(f);
} catch (IOException e) {
throw new PatchApplyException(MessageFormat.format(