# HG changeset patch # User Dmitry Neverov # Date 1330938464 -14400 # Node ID aa016c34fede1bf98274c09c3f30d281cee9e55d # Parent 836c0a9e5ebff9ee64f77008b88bcab6bec057e1 Cleanup diff -r 836c0a9e5ebf -r aa016c34fede mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/UnrelatedResitoriesTest.java --- a/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/UnrelatedResitoriesTest.java Fri Mar 02 15:33:01 2012 +0400 +++ b/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/UnrelatedResitoriesTest.java Mon Mar 05 13:07:44 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)); -// } }