mirror of
https://github.com/corda/corda.git
synced 2025-06-17 06:38:21 +00:00
IRS Docker nomenclature fix (#2531)
* We check properties, so why I named them variables?
This commit is contained in:
committed by
GitHub
parent
d25ab7d897
commit
fa34a16f27
@ -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
|
||||||
|
Reference in New Issue
Block a user