Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKetan Padegaonkar2011-05-19 08:32:02 +0000
committerChris Aniszczyk2011-05-19 16:13:12 +0000
commitd60001c83bfd2dd5170dc1a9377d6eec422b8619 (patch)
tree5c3e9a97364205aae817cdecab0f0b4311fd948b /org.eclipse.jgit.junit
parent5ec4977bb514ec8eb01dd22c3e908fe3fe6da83f (diff)
downloadjgit-d60001c83bfd2dd5170dc1a9377d6eec422b8619.tar.gz
jgit-d60001c83bfd2dd5170dc1a9377d6eec422b8619.tar.xz
jgit-d60001c83bfd2dd5170dc1a9377d6eec422b8619.zip
Add GitCloneTaskTest
Change-Id: Iec8cd032d8d659a896d909f9094f76b7d35147e6 Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.junit')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java5
1 files changed, 5 insertions, 0 deletions
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.
*

Back to the top