From d60001c83bfd2dd5170dc1a9377d6eec422b8619 Mon Sep 17 00:00:00 2001 From: Ketan Padegaonkar Date: Thu, 19 May 2011 14:02:02 +0530 Subject: Add GitCloneTaskTest Change-Id: Iec8cd032d8d659a896d909f9094f76b7d35147e6 Signed-off-by: Chris Aniszczyk --- .../src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'org.eclipse.jgit.junit/src') diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java index 4b512ed09e..30d437540f 100644 --- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java +++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java @@ -58,6 +58,7 @@ import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.UUID; import java.util.concurrent.TimeUnit; import org.eclipse.jgit.lib.Constants; @@ -318,6 +319,10 @@ public abstract class LocalDiskRepositoryTestCase { return gitdir; } + protected File createTempFile() throws IOException { + return new File(trash, "tmp-" + UUID.randomUUID()).getCanonicalFile(); + } + /** * Run a hook script in the repository, returning the exit status. * -- cgit v1.2.3