com.r3corda.core.testing / TEST_TX_TIME

# TEST_TX_TIME

`val TEST_TX_TIME: Instant`
JAVA INTEROP

Please keep the following points in mind when extending the Kotlin DSL:

- Annotate functions with Kotlin defaults with @JvmOverloads. This produces the relevant overloads for Java.

- Void closures in arguments are inconvenient in Java, use overloading to define non-closure variants as well.

- Top-level vals are trickier. DO NOT USE@JvmField at the top level Its surprisingly easy to introduce a static init cycle because of the way Kotlin compiles top-level things, which can cause non-deterministic behaviour, including your field not being initialized at all Instead opt for a proper Kotlin val either with a custom @JvmStatic get() or a lazy delegate if the initialiser has side-effects. See examples below.

- Infix functions work as regular ones from Java, but symbols with spaces in them dont Define a camelCase variant as well.

- varargs are exposed as array types in Java. Define overloads for common cases.

- The Int.DOLLARS syntax doesnt work from Java. Use the DOLLARS(int) function instead.