Mercurial > hg > mercurial
changeset 406:aa016c34fede Faradi-7.0.x
Cleanup
author | Dmitry Neverov <dmitry.neverov@jetbrains.com> |
---|---|
date | Mon, 05 Mar 2012 13:07:44 +0400 |
parents | 836c0a9e5ebf |
children | 5a26330117bc b34ffc622efc |
files | mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/UnrelatedResitoriesTest.java |
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: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)); -// } }