changeset 407:5a26330117bc

Merge branch Faradi-7.0.x
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Mon, 05 Mar 2012 13:08:36 +0400
parents 0b0a9c0ced8f (current diff) aa016c34fede (diff)
children 4fcc61e5d8ea
files
diffstat 1 files changed, 0 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/UnrelatedResitoriesTest.java	Fri Mar 02 15:33:14 2012 +0400
+++ b/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/UnrelatedResitoriesTest.java	Mon Mar 05 13:08:36 2012 +0400
@@ -8,7 +8,6 @@
 import jetbrains.buildServer.vcs.VcsException;
 import jetbrains.buildServer.vcs.impl.VcsRootImpl;
 import org.jetbrains.annotations.NotNull;
-import org.jmock.Expectations;
 import org.jmock.Mockery;
 import org.testng.annotations.AfterMethod;
 import org.testng.annotations.BeforeMethod;
@@ -68,16 +67,7 @@
 
 
   public void should_return_no_changes_when_fromRevision_is_from_unrelated_repository() throws Exception {
-//    final CommandFactory factory = myContext.mock(CommandFactory.class);
-//    final CollectChangesCommand commandExecutedWithException = myContext.mock(CollectChangesCommand.class);
     myVcs = createVcs();
-    myContext.checking(new Expectations(){{
-//      allowing(factory).getCollectChangesCommand(with(any(Settings.class)), with(any(File.class)));
-//      will(returnValue(commandExecutedWithException));
-//      allowing(commandExecutedWithException).call(with(any(String.class)), with(any(String.class)));
-//      will(throwException(new UnknownRevisionException("1234")));
-    }});
-
     String currentVersionOfOldRepo = syncRepository();
     repositoryBecamesUnrelated();
     String currentVersionOfNewRepo = syncRepository();
@@ -101,8 +91,4 @@
   private MercurialVcsSupport createVcs() throws IOException {
     return Util.createMercurialServerSupport(myContext, myPluginConfig);
   }
-
-//  private MercurialVcsSupport createVcs(/*@NotNull final CommandFactory factory*/) throws IOException {
-//    return Util.createMercurialServerSupport(myContext, myPluginConfig, new CommandFactoryImpl(myPluginConfig));
-//  }
 }