Mercurial > hg4j
diff test/org/tmatesoft/hg/test/TestAddRemove.java @ 559:6ca3d0c5b4bc
Commit: tests and fixes for defects discovered
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 25 Feb 2013 19:48:20 +0100 |
parents | 2813a26b8999 |
children |
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/TestAddRemove.java Mon Feb 25 18:41:44 2013 +0100 +++ b/test/org/tmatesoft/hg/test/TestAddRemove.java Mon Feb 25 19:48:20 2013 +0100 @@ -17,10 +17,9 @@ package org.tmatesoft.hg.test; import static org.junit.Assert.assertEquals; +import static org.tmatesoft.hg.test.RepoUtils.createFile; import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; import org.junit.Rule; import org.junit.Test; @@ -86,11 +85,4 @@ eh.run("hg", "status", "-A"); assertEquals(2, statusParser.getRemoved().size()); } - - private static void createFile(File f, Object content) throws IOException { - FileOutputStream fos = new FileOutputStream(f, true); - fos.write(String.valueOf(content).getBytes()); - fos.close(); - } - }