Mercurial > hg > mercurial
changeset 536:fdb9ea7cb51e
Fix test
author | kir@kir-macpro.cz.labs.intellij.net |
---|---|
date | Tue, 29 Jan 2013 12:23:09 +0100 |
parents | 489c08497b64 |
children | 5fa123e185b3 |
files | mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/VcsRootBuilder.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/VcsRootBuilder.java Tue Jan 29 10:54:05 2013 +0100 +++ b/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/VcsRootBuilder.java Tue Jan 29 12:23:09 2013 +0100 @@ -1,14 +1,13 @@ package jetbrains.buildServer.buildTriggers.vcs.mercurial; +import java.io.File; +import java.io.IOException; import jetbrains.buildServer.vcs.SVcsRoot; import jetbrains.buildServer.vcs.impl.VcsRootImpl; import org.jetbrains.annotations.NotNull; import org.jmock.Expectations; import org.jmock.Mockery; -import java.io.File; -import java.io.IOException; - /** * @author dmitry.neverov */ @@ -46,6 +45,7 @@ public SVcsRoot build(Mockery context) { final SVcsRoot root = context.mock(SVcsRoot.class, "SVcsRoot" + myRootId); context.checking(new Expectations() {{ + allowing(root).describe(false); will(returnValue("toString")); allowing(root).getVcsName(); will(returnValue(Constants.VCS_NAME)); allowing(root).getProperty(with(Constants.REPOSITORY_PROP)); will(returnValue(myRepository)); allowing(root).getProperty(with(Constants.HG_COMMAND_PATH_PROP)); will(returnValue(myHgPath));