comparison mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/PushCommandTest.java @ 426:c91c4f1ebd53

Settings -> HgVcsRoot
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Fri, 11 May 2012 15:55:57 +0400
parents 45f25ca68312
children 04eab204ba39
comparison
equal deleted inserted replaced
425:e33c3e4918f5 426:c91c4f1ebd53
33 final String password = "pwd1"; 33 final String password = "pwd1";
34 setPassword(password); 34 setPassword(password);
35 35
36 try { 36 try {
37 runCommand(new CommandExecutor<Boolean>() { 37 runCommand(new CommandExecutor<Boolean>() {
38 public Boolean execute(@NotNull final Settings settings, @NotNull File workingDir) throws VcsException { 38 public Boolean execute(@NotNull final HgVcsRoot root, @NotNull File workingDir) throws VcsException {
39 new PushCommand(settings.getHgCommandPath(), workingDir, settings.getAuthSettings()).toRepository(settings.getRepository()).call(); 39 new PushCommand(root.getHgCommandPath(), workingDir, root.getAuthSettings()).toRepository(root.getRepository()).call();
40 return null; 40 return null;
41 } 41 }
42 }); 42 });
43 } catch (VcsException e) { 43 } catch (VcsException e) {
44 assertFalse(e.getMessage().contains(password)); 44 assertFalse(e.getMessage().contains(password));