use of jetbrains.buildServer.buildTriggers.vcs.git.AuthSettingsImpl in project teamcity-git by JetBrains.
the class ScriptGenTest method check_escaping.
@TestFor(issues = "TW-40688")
@Test(dataProvider = "passwords")
public void check_escaping(@NotNull String password) throws Exception {
VcsRoot root = createRootWithPassword(password);
GeneralCommandLine cmd = new GeneralCommandLine();
cmd.setExePath(createGenerator().generateAskPass(new AuthSettingsImpl(root, new URIishHelperImpl())).getCanonicalPath());
ExecResult result = SimpleCommandLineProcessRunner.runCommand(cmd, null);
assertEquals(password, trimNewLines(result.getStdout()));
}
Aggregations