Driver
Keywords: net.corda.testing.driver.Driver class
Date: 2023-09-18

net.corda.testing.driver

## Class Driver

- net.corda.testing.driver.Driver

-     public class Driver

- - ### Constructor Detail

    - #### Driver

          public Driver()

  - ### Method Detail

    - #### logFile

          @NotNull
          public static java.io.File logFile(@NotNull
                                                      NodeHandle $this$logFile)

    - #### driver

          public static <A> A driver(@NotNull
                                     DriverParameters defaultParameters,
                                     @NotNull
                                     kotlin.jvm.functions.Function1<? super net.corda.testing.driver.DriverDSL,? extends A> dsl)

      `driver` allows one to start up nodes like this: driver { val noService = startNode(providedName = DUMMY_BANK_A.name) val notary = startNode(providedName = DUMMY_NOTARY.name)

      ``

              (...)

      }

      Note that `DriverDSL.startNode` does not wait for the node to start up synchronously, but rather returns a `interface CordaFuture` of the `class NodeInfo` that may be waited on, which completes when the new node registered with the network map service or loaded node data from database.

      Parameters:
        `defaultParameters` - The default parameters for the driver. Allows the driver to be configured in builder stylewhen called from Java code.
        `dsl` - The dsl itself.
      Returns:
        The value returned in the `dsl` closure.
      See Also:
        `driver`, `DriverDSL.startNode`, `interface CordaFuture`, `class NodeInfo`