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