Mercurial > hg > mercurial
changeset 153:2c97d352ad6e
reuse code
author | Dmitry Neverov <dmitry.neverov@jetbrains.com> |
---|---|
date | Tue, 11 Jan 2011 16:13:31 +0300 |
parents | 8532bc45bb32 |
children | 987213efc76b |
files | mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java Tue Jan 11 15:47:47 2011 +0300 +++ b/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java Tue Jan 11 16:13:31 2011 +0300 @@ -86,15 +86,18 @@ public void test_collect_changes_between_two_same_roots() throws Exception { VcsRootImpl vcsRoot = createVcsRoot(simpleRepo()); - - List<ModificationData> changes = myVcs.collectChanges(vcsRoot, "0:9875b412a788", vcsRoot, "3:9522278aa38d", new CheckoutRules("")); - assertEquals(3, changes.size()); + VcsRootImpl sameVcsRoot = createVcsRoot(simpleRepo()); + List<ModificationData> changes = myVcs.collectChanges(vcsRoot, "0:9875b412a788", sameVcsRoot, "3:9522278aa38d", new CheckoutRules("")); + do_check_for_collect_changes(changes); } public void test_collect_changes() throws Exception { VcsRootImpl vcsRoot = createVcsRoot(simpleRepo()); + List<ModificationData> changes = collectChanges(vcsRoot, "0:9875b412a788", "3:9522278aa38d", new CheckoutRules("")); + do_check_for_collect_changes(changes); + } - List<ModificationData> changes = collectChanges(vcsRoot, "0:9875b412a788", "3:9522278aa38d", new CheckoutRules("")); + private void do_check_for_collect_changes(List<ModificationData> changes) throws Exception { assertEquals(3, changes.size()); ModificationData md1 = changes.get(0);