diff options
author | Ulf Adams <ulfjack@google.com> | 2015-04-24 15:56:13 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@google.com> | 2015-04-27 18:48:21 +0000 |
commit | 8e38d8d3aa427ba59ab5e8e7521d5c934166e862 (patch) | |
tree | 8a55be7f1d0d7df103da7200a0f42d7d46874f03 /src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java | |
parent | 906f255982742a373890437f086c08feab980349 (diff) |
Inline FoundationTestCase.overwriteScratchFile.
--
MOS_MIGRATED_REVID=91986167
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java b/src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java index 230a01e1e6..2355040d48 100644 --- a/src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java +++ b/src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java @@ -114,7 +114,7 @@ public abstract class FoundationTestCase extends TestCase { String context = loadFile(file); Path path = rootDirectory.getRelative(to + "/" + fileName); if (path.exists()) { - overwriteScratchFile(path.getPathString(), context); + scratch.overwriteFile(path.getPathString(), context); } else { scratchFile(path.getPathString(), context); } @@ -149,14 +149,6 @@ public abstract class FoundationTestCase extends TestCase { return scratch.file(pathName, lines); } - /** - * Like {@code scratchFile}, but the file is first deleted if it already - * exists. - */ - protected Path overwriteScratchFile(String pathName, String... lines) throws IOException { - return scratch.overwriteFile(pathName, lines); - } - // Mix-in assertions: protected void assertNoEvents() { |