Mercurial > hg4j
diff test/org/tmatesoft/hg/test/TestStatus.java @ 131:aa1629f36482
Renamed .core classes to start with Hg prefix
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 16 Feb 2011 20:47:56 +0100 |
parents | 2e395db595e2 |
children | 4a948ec83980 |
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/TestStatus.java Wed Feb 16 20:33:31 2011 +0100 +++ b/test/org/tmatesoft/hg/test/TestStatus.java Wed Feb 16 20:47:56 2011 +0100 @@ -34,7 +34,7 @@ import org.junit.Test; import org.tmatesoft.hg.core.HgStatus; import org.tmatesoft.hg.core.Path; -import org.tmatesoft.hg.core.StatusCommand; +import org.tmatesoft.hg.core.HgStatusCommand; import org.tmatesoft.hg.repo.HgLookup; import org.tmatesoft.hg.repo.HgRepository; import org.tmatesoft.hg.repo.HgStatusCollector; @@ -104,7 +104,7 @@ @Test public void testStatusCommand() throws Exception { - final StatusCommand sc = new StatusCommand(repo).all(); + final HgStatusCommand sc = new HgStatusCommand(repo).all(); StatusCollector r; statusParser.reset(); eh.run("hg", "status", "-A"); @@ -125,7 +125,7 @@ // TODO check not -A, but defaults()/custom set of modifications } - private static class StatusCollector implements StatusCommand.Handler { + private static class StatusCollector implements HgStatusCommand.Handler { private final Map<HgStatus.Kind, List<Path>> map = new TreeMap<HgStatus.Kind, List<Path>>(); public void handleStatus(HgStatus s) { @@ -170,7 +170,7 @@ final long start2 = System.currentTimeMillis(); for (int i = 0; i < runs; i++) { StatusCollector r = new StatusCollector(); - new StatusCommand(repo).all().base(3).revision(80).execute(r); + new HgStatusCommand(repo).all().base(3).revision(80).execute(r); } final long end = System.currentTimeMillis(); System.out.printf("'hg status -A --rev 3:80', %d runs: Native client total %d (%d per run), Java client %d (%d)\n", runs, start2-start1, (start2-start1)/runs, end-start2, (end-start2)/runs);