diff --git a/git-plugin/src/test/kotlin/io/rabobank/ret/git/plugin/AutoCompleteCommandTest.kt b/git-plugin/src/test/kotlin/io/rabobank/ret/git/plugin/AutoCompleteCommandTest.kt index a6463f2..e73644a 100644 --- a/git-plugin/src/test/kotlin/io/rabobank/ret/git/plugin/AutoCompleteCommandTest.kt +++ b/git-plugin/src/test/kotlin/io/rabobank/ret/git/plugin/AutoCompleteCommandTest.kt @@ -55,6 +55,11 @@ class AutoCompleteCommandTest { commandLine = CommandLine(command) commandLine.out = PrintWriter(output) + mockedRepositories() + mockedPullRequests() + } + + private fun mockedRepositories() { allMockedRepositories = listOf( Repository("admin-service", "refs/heads/master"), @@ -75,6 +80,9 @@ class AutoCompleteCommandTest { Branch("refs/heads/feature/def", "feature/def"), ), ) + } + + private fun mockedPullRequests() { allMockedPullRequests = listOf( PullRequest( @@ -89,10 +97,17 @@ class AutoCompleteCommandTest { Repository("generic-project", "refs/heads/master"), listOf(Reviewer("manks@live.com")), ), - PullRequest("1241", "NOJIRA: ahum", Repository("ret-engineering-tools", "refs/heads/master"), listOf()), PullRequest( - "1271", "NOJIRA: MANKS", - Repository("ret-engineering-tools", "refs/heads/master"), listOf(), + "1241", + "NOJIRA: ahum", + Repository("ret-engineering-tools", "refs/heads/master"), + listOf(), + ), + PullRequest( + "1271", + "NOJIRA: MANKS", + Repository("ret-engineering-tools", "refs/heads/master"), + listOf(), ), PullRequest("1272", "update admin-service", Repository("test", "refs/heads/master"), listOf()), ) diff --git a/pom.xml b/pom.xml index a2d87bb..1dacfb6 100644 --- a/pom.xml +++ b/pom.xml @@ -33,7 +33,7 @@ 1.23.5 7.0.0 1.11.0 - 3.0.0 + 3.1.1 3.1.0 3.6.0 1.2.1