@Test public void testInitEmptyRepository() throws Exception { remoteGitHelper.initEmptyRepository(connection, "remote-path"); verify(connection).execute("mkdir", "-p", "remote-path"); verify(connection).executeIn("remote-path", "git", "init"); }
public void initEmptyRepository(SshConnection connection, String remotePath) throws IOException { connection.execute("mkdir", "-p", remotePath); connection.executeIn(remotePath, "git", "init"); }
RemoteGitHelper { public void initEmptyRepository(SshConnection connection, String remotePath) throws IOException { connection.execute("mkdir", "-p", remotePath); connection.executeIn(remotePath, "git", "init"); } }
RemoteGitHelper { public void initEmptyRepository(SshConnection connection, String remotePath) throws IOException { connection.execute("mkdir", "-p", remotePath); connection.executeIn(remotePath, "git", "init"); } protected  RemoteGitHelper(); }
RemoteGitHelper { public void initEmptyRepository(SshConnection connection, String remotePath) throws IOException { connection.execute("mkdir", "-p", remotePath); connection.executeIn(remotePath, "git", "init"); } protected  RemoteGitHelper(); void installGit(SshConnection connection, SystemSpecification os); boolean isGitInstalled(SshConnection connection); void checkoutHard(SshConnection connection, String remotePath, String revision); void initEmptyRepository(SshConnection connection, String remotePath); }
RemoteGitHelper { public void initEmptyRepository(SshConnection connection, String remotePath) throws IOException { connection.execute("mkdir", "-p", remotePath); connection.executeIn(remotePath, "git", "init"); } protected  RemoteGitHelper(); void installGit(SshConnection connection, SystemSpecification os); boolean isGitInstalled(SshConnection connection); void checkoutHard(SshConnection connection, String remotePath, String revision); void initEmptyRepository(SshConnection connection, String remotePath);  }