Mercurial > hg4j
comparison 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 |
comparison
equal
deleted
inserted
replaced
200:114c9fe7b643 | 201:a736f42ed75b |
---|---|
17 package org.tmatesoft.hg.test; | 17 package org.tmatesoft.hg.test; |
18 | 18 |
19 import static org.junit.Assert.*; | 19 import static org.junit.Assert.*; |
20 | 20 |
21 import java.io.File; | 21 import java.io.File; |
22 import java.util.Collections; | |
23 import java.util.List; | |
22 | 24 |
23 import org.tmatesoft.hg.repo.HgLookup; | 25 import org.tmatesoft.hg.repo.HgLookup; |
26 import org.tmatesoft.hg.repo.HgRemoteRepository; | |
24 import org.tmatesoft.hg.repo.HgRepository; | 27 import org.tmatesoft.hg.repo.HgRepository; |
25 | 28 |
26 /** | 29 /** |
27 * | 30 * |
28 * @author Artem Tikhomirov | 31 * @author Artem Tikhomirov |
59 HgRepository rv = lookup.detect(new File(root, key)); | 62 HgRepository rv = lookup.detect(new File(root, key)); |
60 assertNotNull(rv); | 63 assertNotNull(rv); |
61 assertFalse(rv.isInvalid()); | 64 assertFalse(rv.isInvalid()); |
62 return rv; | 65 return rv; |
63 } | 66 } |
67 | |
68 public List<HgRemoteRepository> allRemote() throws Exception { | |
69 return Collections.singletonList(lookup.detectRemote("hg4j-gc", null)); | |
70 } | |
64 } | 71 } |