IRS Docker nomenclature fix (#2531)

* We check properties, so why I named them variables?
This commit is contained in:
Maksymilian Pawlak 2018-02-15 12:05:10 +00:00 committed by GitHub
parent d25ab7d897
commit fa34a16f27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,16 +19,16 @@ import kotlin.test.assertTrue
class IRSDemoDockerTest {
companion object {
private fun ensureSystemVariable(variable: String) {
if (System.getProperty(variable) == null) {
throw IllegalStateException("System variable $variable not set. Please refer to README file for proper setup instructions.")
private fun ensureProperty(property: String) {
if (System.getProperty(property) == null) {
throw IllegalStateException("System property $property not set. Please refer to README file for proper setup instructions.")
}
}
init {
ensureSystemVariable("CORDAPP_DOCKER_COMPOSE")
ensureSystemVariable("WEB_DOCKER_COMPOSE")
ensureSystemVariable("phantomjs.binary.path")
ensureProperty("CORDAPP_DOCKER_COMPOSE")
ensureProperty("WEB_DOCKER_COMPOSE")
ensureProperty("phantomjs.binary.path")
}
@ClassRule