From 4709e47f6b4874355f01720288663337673e8a5c Mon Sep 17 00:00:00 2001 From: Martin Visser Date: Mon, 4 Mar 2024 08:45:55 +0100 Subject: [PATCH] Re-format after ktlint upgrade --- .../ret/git/plugin/AutoCompleteCommandTest.kt | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) 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()), )