diff test/org/tmatesoft/hg/test/Configuration.java @ 201:a736f42ed75b

Primitive test for clone command
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 21 Apr 2011 19:16:45 +0200
parents a05145db4d0c
children 706bcc7cfee4
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/Configuration.java	Wed Apr 20 21:14:51 2011 +0200
+++ b/test/org/tmatesoft/hg/test/Configuration.java	Thu Apr 21 19:16:45 2011 +0200
@@ -19,8 +19,11 @@
 import static org.junit.Assert.*;
 
 import java.io.File;
+import java.util.Collections;
+import java.util.List;
 
 import org.tmatesoft.hg.repo.HgLookup;
+import org.tmatesoft.hg.repo.HgRemoteRepository;
 import org.tmatesoft.hg.repo.HgRepository;
 
 /**
@@ -61,4 +64,8 @@
 		assertFalse(rv.isInvalid());
 		return rv;
 	}
+
+	public List<HgRemoteRepository> allRemote() throws Exception {
+		return Collections.singletonList(lookup.detectRemote("hg4j-gc", null));
+	}
 }