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

View File

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