mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Move prepareSecondRepository method to base hg test class
This commit is contained in:
@@ -115,4 +115,15 @@ public abstract class HgPlatformTest extends UsefulTestCase {
|
||||
hg("add file.txt");
|
||||
hg("commit -m initial");
|
||||
}
|
||||
|
||||
public void prepareSecondRepository() throws IOException {
|
||||
cd(myRepository);
|
||||
hg("clone " + myRepository.getCanonicalPath() + " childRepo");
|
||||
myChildRepo = myRepository.findChild("childRepo");
|
||||
cd(myChildRepo);
|
||||
hg("pull");
|
||||
hg("update");
|
||||
HgTestUtil.updateDirectoryMappings(myProject, myRepository);
|
||||
HgTestUtil.updateDirectoryMappings(myProject, myChildRepo);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,14 +191,4 @@ public class HgMergeProviderTest extends HgPlatformTest {
|
||||
Assert.assertEquals(s, new String(bytes));
|
||||
}
|
||||
|
||||
private void prepareSecondRepository() throws IOException {
|
||||
cd(myRepository);
|
||||
hg("clone " + myRepository.getCanonicalPath() + " childRepo");
|
||||
myChildRepo = myRepository.findChild("childRepo");
|
||||
cd(myChildRepo);
|
||||
hg("pull");
|
||||
hg("update");
|
||||
HgTestUtil.updateDirectoryMappings(myProject, myRepository);
|
||||
HgTestUtil.updateDirectoryMappings(myProject, myChildRepo);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user