diff options
Diffstat (limited to 'src/test/java/com/google/devtools')
-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() { |