DriverBasedTest |
abstract class DriverBasedTest |
DriverDSL |
open class DriverDSL : DriverDSLInternalInterface |
DriverDSLExposedInterface |
interface DriverDSLExposedInterface
This is the interface that's exposed to DSL users. |
DriverDSLInternalInterface |
interface DriverDSLInternalInterface : DriverDSLExposedInterface |
NodeHandle |
data class NodeHandle |
PortAllocation |
sealed class PortAllocation |
addressMustBeBound |
fun addressMustBeBound(executorService: ScheduledExecutorService, hostAndPort: HostAndPort): ListenableFuture<Unit> |
addressMustNotBeBound |
fun addressMustNotBeBound(executorService: ScheduledExecutorService, hostAndPort: HostAndPort): ListenableFuture<Unit> |
driver |
fun <A> driver(isDebug: Boolean = false, driverDirectory: Path = Paths.get("build", getTimestampAsDirectoryName()), portAllocation: PortAllocation = PortAllocation.Incremental(10000), debugPortAllocation: PortAllocation = PortAllocation.Incremental(5005), useTestClock: Boolean = false, dsl: DriverDSLExposedInterface.() -> A): A
driver allows one to start up nodes like this: driver { val noService = startNode("NoService") val notary = startNode("Notary") |
genericDriver |
fun <DI : DriverDSLExposedInterface, D : DriverDSLInternalInterface, A> genericDriver(driverDsl: D, coerce: (D) -> DI, dsl: DI.() -> A): A
This is a helper method to allow extending of the DSL, along the lines of interface SomeOtherExposedDSLInterface : DriverDSLExposedInterface interface SomeOtherInternalDSLInterface : DriverDSLInternalInterface, SomeOtherExposedDSLInterface class SomeOtherDSL(val driverDSL : DriverDSL) : DriverDSLInternalInterface by driverDSL, SomeOtherInternalDSLInterface |
getTimestampAsDirectoryName |
fun getTimestampAsDirectoryName(): String |
writeConfig |
fun writeConfig(path: Path, filename: String, config: Config): Unit |