Minor: auto-format of module: node-api, node-schemas

This commit is contained in:
Mike Hearn 2017-04-11 12:43:25 +02:00
parent d6af727751
commit eec8b9e4da
3 changed files with 42 additions and 37 deletions
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) {