mirror of
https://github.com/corda/corda.git
synced 2025-03-06 06:01:56 +00:00
Minor: auto-format of module: node-api, node-schemas
This commit is contained in:
parent
d6af727751
commit
eec8b9e4da
node-api/src/test/kotlin/net/corda/nodeapi/config
node-schemas/src/test/kotlin/net/corda/node/services/vault/schemas
@ -233,6 +233,7 @@ class ConfigParsingTest {
|
||||
data class OldData(
|
||||
@OldConfig("oldValue")
|
||||
val newValue: String)
|
||||
|
||||
enum class TestEnum { Value1, Value2 }
|
||||
|
||||
}
|
@ -78,12 +78,15 @@ class VaultSchemaTest {
|
||||
|
||||
private class VaultNoopContract() : Contract {
|
||||
override val legalContractReference = SecureHash.sha256("")
|
||||
|
||||
data class VaultNoopState(override val owner: CompositeKey) : OwnableState {
|
||||
override val contract = VaultNoopContract()
|
||||
override val participants: List<CompositeKey>
|
||||
get() = listOf(owner)
|
||||
|
||||
override fun withNewOwner(newOwner: CompositeKey) = Pair(Commands.Create(), copy(owner = newOwner))
|
||||
}
|
||||
|
||||
interface Commands : CommandData {
|
||||
class Create : TypeOnlyCommandData(), Commands
|
||||
}
|
||||
@ -168,7 +171,8 @@ class VaultSchemaTest {
|
||||
createStateEntity(it, idx = i).apply {
|
||||
insert(this)
|
||||
}
|
||||
} catch(e: Exception) {}
|
||||
} catch(e: Exception) {
|
||||
}
|
||||
}
|
||||
// create additional state entities with different txn id
|
||||
for (i in 1..3) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user