Skip to content

Commit

Permalink
Expose Reports.listReports
Browse files Browse the repository at this point in the history
  • Loading branch information
dagguh committed Oct 16, 2019
1 parent 815ecb6 commit 46ac2ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ open class Reports protected constructor() {
reports.add(report)
}

internal fun allReports(): Iterable<Report> {
fun listReports(): Iterable<Report> {
return reports.toList()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) }
}
}

Expand Down

0 comments on commit 46ac2ba

Please sign in to comment.