comparison test/org/tmatesoft/hg/test/TestClone.java @ 204:883f1efbcf27

Add clone,incoming and outging tests
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 26 Apr 2011 23:58:15 +0200
parents 706bcc7cfee4
children 4a0bab2c6da1
comparison
equal deleted inserted replaced
203:66fd2c73c56f 204:883f1efbcf27
22 import java.util.LinkedList; 22 import java.util.LinkedList;
23 import java.util.List; 23 import java.util.List;
24 24
25 import org.hamcrest.CoreMatchers; 25 import org.hamcrest.CoreMatchers;
26 import org.junit.Rule; 26 import org.junit.Rule;
27 import org.junit.Test;
27 import org.tmatesoft.hg.core.HgCloneCommand; 28 import org.tmatesoft.hg.core.HgCloneCommand;
28 import org.tmatesoft.hg.repo.HgRemoteRepository; 29 import org.tmatesoft.hg.repo.HgRemoteRepository;
29 30
30 /** 31 /**
31 * 32 *
44 } 45 }
45 46
46 public TestClone() { 47 public TestClone() {
47 } 48 }
48 49
50 @Test
49 public void testSimpleClone() throws Exception { 51 public void testSimpleClone() throws Exception {
50 int x = 0; 52 int x = 0;
51 final File tempDir = Configuration.get().getTempDir(); 53 final File tempDir = Configuration.get().getTempDir();
52 for (HgRemoteRepository hgRemote : Configuration.get().allRemote()) { 54 for (HgRemoteRepository hgRemote : Configuration.get().allRemote()) {
53 HgCloneCommand cmd = new HgCloneCommand(); 55 HgCloneCommand cmd = new HgCloneCommand();