Fix incorrect imports. (#3022)

This commit is contained in:
josecoll 2018-04-27 11:52:51 +01:00 committed by GitHub
parent 0f310dd966
commit 6b78ee8c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 7 deletions

View File

@ -1,7 +1,6 @@
package net.corda.behave.scenarios
import cucumber.api.java.After
import net.corda.behave.logging.getLogger
import net.corda.behave.network.Network
import net.corda.behave.node.Node
import net.corda.core.messaging.CordaRPCOps
@ -10,8 +9,6 @@ import java.time.Duration
class ScenarioState {
private val log = getLogger<ScenarioState>()
private val nodes = mutableListOf<Node.Builder>()
private var network: Network? = null

View File

@ -2,7 +2,7 @@ package net.corda.behave.scenarios.helpers
import net.corda.behave.await
import net.corda.behave.scenarios.ScenarioState
import net.corda.behave.seconds
import net.corda.core.utilities.seconds
import org.assertj.core.api.Assertions.assertThat
import java.util.concurrent.CountDownLatch

View File

@ -1,9 +1,9 @@
package net.corda.behave.scenarios.helpers
import net.corda.behave.minutes
import net.corda.behave.process.JarCommand
import net.corda.behave.scenarios.ScenarioState
import net.corda.core.internal.div
import net.corda.core.utilities.minutes
class Startup(state: ScenarioState) : Substeps(state) {

View File

@ -1,12 +1,12 @@
package net.corda.behave.scenarios.helpers
import net.corda.behave.logging.getLogger
import net.corda.behave.scenarios.ScenarioState
import net.corda.core.messaging.CordaRPCOps
import net.corda.core.utilities.contextLogger
abstract class Substeps(protected val state: ScenarioState) {
protected val log = getLogger<Substeps>()
protected val log = contextLogger()
protected fun withNetwork(action: ScenarioState.() -> Unit) =
state.withNetwork(action)