remove try-catch block from test

This commit is contained in:
Nadya Zabrodina
2013-07-05 18:46:31 +04:00
parent 582517af2c
commit 12e4a2a626
@@ -48,18 +48,12 @@ public class HgConfigTest extends HgPlatformTest {
FileUtil.toSystemIndependentName(defaultPushPath));
}
public void testLargeExtensionInClonedRepo() {
public void testLargeExtensionInClonedRepo() throws IOException {
cd(myChildRepo);
File hgrc = new File(new File(myChildRepo.getPath(), ".hg"), "hgrc");
assert hgrc.exists();
try {
FileUtil.appendToFile(hgrc, "\n[extensions]\n" +
"largefiles =");
}
catch (IOException e) {
e.printStackTrace();
fail("Can not update hgrc file.");
}
FileUtil.appendToFile(hgrc, "\n[extensions]\n" +
"largefiles =");
updateRepoConfig(myProject, myChildRepo);
assertNotNull(HgUtil.getRepositoryNamedConfig(myProject, myChildRepo, "extensions", "largefiles"));
}