src/test-integration/kotlin/org/jetbrains/teamcity/github/GitHubWebHookSuggestionTest.kt [198:216]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - private fun addGitHubConnection(project: ProjectEx): OAuthConnectionDescriptor { return myOAuthConnectionsManager!!.addConnection(project, GitHubOAuthProvider.TYPE, mapOf( GitHubConstants.CLIENT_ID_PARAM to "CID", GitHubConstants.CLIENT_SECRET_PARAM to "CS" )) } private fun addGHEConnection(project: ProjectEx, url: String): OAuthConnectionDescriptor { return myOAuthConnectionsManager!!.addConnection(project, GHEOAuthProvider.TYPE, mapOf( GitHubConstants.GITHUB_URL_PARAM to url, GitHubConstants.CLIENT_ID_PARAM to "CID", GitHubConstants.CLIENT_SECRET_PARAM to "CS" )) } private fun addGitVcsRoot(project: ProjectEx?, url: String): SVcsRootEx { val vcs = createVcsRoot(Constants.VCS_NAME_GIT, project) vcs.properties = mapOf(Constants.VCS_PROPERTY_GIT_URL to url) return vcs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - src/test-integration/kotlin/org/jetbrains/teamcity/github/IntegrationUtilTest.kt [149:167]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - private fun addGitHubConnection(project: ProjectEx): OAuthConnectionDescriptor { return myOAuthConnectionsManager!!.addConnection(project, GitHubOAuthProvider.TYPE, mapOf( GitHubConstants.CLIENT_ID_PARAM to "CID", GitHubConstants.CLIENT_SECRET_PARAM to "CS" )) } private fun addGHEConnection(project: ProjectEx, url: String): OAuthConnectionDescriptor { return myOAuthConnectionsManager!!.addConnection(project, GHEOAuthProvider.TYPE, mapOf( GitHubConstants.GITHUB_URL_PARAM to url, GitHubConstants.CLIENT_ID_PARAM to "CID", GitHubConstants.CLIENT_SECRET_PARAM to "CS" )) } private fun addGitVcsRoot(project: ProjectEx?, url: String): SVcsRootEx { val vcs = createVcsRoot(Constants.VCS_NAME_GIT, project) vcs.properties = mapOf(Constants.VCS_PROPERTY_GIT_URL to url) return vcs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -