fun testSimple()

in src/test-integration/kotlin/org/jetbrains/teamcity/github/GitHubWebHookSuggestionTest.kt [28:45]


    fun testSimple() {
        val p1 = myFixture.createProject("P1")
        val bt1 = registerBuildType("BT1", p1, "Ant")
        val vcs = addGitVcsRoot(p1, "https://github.com/A/B")

        bt1.addVcsRoot(vcs)

        addGitHubConnection(p1)

        val consumer = report(p1.buildTypes)

        then(consumer.project[p1]).hasSize(1)
        then(consumer.vcsRoot[vcs]).hasSize(1)
        then(consumer.buildType[bt1]).hasSize(1)

        then(consumer.all).hasSize(1)
        then(consumer.all.first().additionalData["Project"]).isEqualTo(p1)
    }