From fa34a16f27c6347a81aed3a61d74ee94c309eefd Mon Sep 17 00:00:00 2001 From: Maksymilian Pawlak <120831+m4ksio@users.noreply.github.com> Date: Thu, 15 Feb 2018 12:05:10 +0000 Subject: [PATCH] IRS Docker nomenclature fix (#2531) * We check properties, so why I named them variables? --- .../src/system-test/kotlin/IRSDemoDockerTest.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/irs-demo/src/system-test/kotlin/IRSDemoDockerTest.kt b/samples/irs-demo/src/system-test/kotlin/IRSDemoDockerTest.kt index 034d4ff2d4..b40e829c9f 100644 --- a/samples/irs-demo/src/system-test/kotlin/IRSDemoDockerTest.kt +++ b/samples/irs-demo/src/system-test/kotlin/IRSDemoDockerTest.kt @@ -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