diff --git a/src/main/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/Reports.kt b/src/main/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/Reports.kt index fb1e5c0d..25b109ed 100644 --- a/src/main/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/Reports.kt +++ b/src/main/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/Reports.kt @@ -13,7 +13,7 @@ open class Reports protected constructor() { reports.add(report) } - internal fun allReports(): Iterable { + fun listReports(): Iterable { return reports.toList() } } diff --git a/src/test/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/start/HookedJiraStartIT.kt b/src/test/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/start/HookedJiraStartIT.kt index de592753..b90f3e2e 100644 --- a/src/test/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/start/HookedJiraStartIT.kt +++ b/src/test/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/start/HookedJiraStartIT.kt @@ -49,7 +49,7 @@ class HookedJiraStartIT { val installed = jiraInstallation.install(ssh, server, hooks) val started = jiraStart.start(ssh, installed, hooks) stop(started, ssh) - hooks.allReports().flatMap { it.locate(ssh) } + hooks.listReports().flatMap { it.locate(ssh) } } // then @@ -98,7 +98,7 @@ class HookedJiraStartIT { } catch (e: Exception) { println("Failed: ${e.message}") } - return@useSsh hooks.allReports().flatMap { it.locate(ssh) } + return@useSsh hooks.listReports().flatMap { it.locate(ssh) } } }