cc22810b09
Testing cleanup:
...
- Move code out of ambiguously named TestUtils files (there were three). Sometimes it's simpler to just put these things into the contract source files directly.
- Remove JavaTestHelpers objects (there were three), in favour of just giving the top level kotlin file class better names.
- Misc other small tweaks and cleanups.
2016-07-11 16:22:02 +02:00
6b775ebd4d
Replace named timestamping authority with notary
...
As the timestamping authority is now always the notary service, contracts should
no longer be using name-based lookup of the timestamping authority (as this will
generally be wrong). This introduces a new "timestamp" property on a transaction,
and updates most contracts to refer to it.
In some cases (IRS, CommercialPaper) there are transactions with no input states
to derive notary from, that use timestamps. In these cases a notary is specified
in the command.
2016-07-11 14:54:36 +01:00
d0903ae265
docs: Rename test tutorial subtitle
2016-07-11 14:25:27 +01:00
e13a95857a
core: Remove colons from @param comments
2016-07-11 14:25:27 +01:00
4324e33fea
testdsl: Removed R type parameter, unify verifies() interface
2016-07-11 14:25:27 +01:00
9bb8439dc3
testdsl: Add failsWith to Ledger
2016-07-11 14:25:27 +01:00
cd0299f650
testdsl: Javadoc comments
2016-07-11 14:25:27 +01:00
3d885eb928
testdsl: Clean up TestUtils.kt
2016-07-11 14:25:27 +01:00
c3060c11c0
testdsl: Use and expose TransactionBuilder in TestTransactionDSLInterpreter
2016-07-11 14:25:27 +01:00
1ae8ada999
Add support for clause based contract verification
2016-07-08 11:17:24 +01:00
eee049d66b
Add cacheing to ServiceLoader scanning of plugins and add a TODO on whitelisting
2016-07-08 10:38:23 +01:00
1fb4371de9
Make the IRS Demo web api an api plugin (scanned from the Node classpath) and use the same permission checking entry point for web api's as the scheduler.
...
Fix whitespace
Change ProtocolLogicRefFactory to use Map<String, Set<String>> as whitelist definition
2016-07-08 10:34:30 +01:00
ad3e9be1c8
Add a version number to gradle and allow "gradle install" to install the core module to the local Maven repository.
2016-07-07 13:59:55 +01:00
b498928f75
Remove the "verify correct notary has signed" check. This is no longed necessary as the required notary key is added to the "signers" list during transaction construction. We have general validation rules that check the correct notary was included in the signers list, and that we have signatures for all "signers".
2016-07-07 13:22:30 +01:00
bbc5c2e981
Merged in mike-july-dependency-upgrades (pull request #200 )
...
Upgrade dependencies, July edition.
2016-07-06 16:25:52 +01:00
2e3f689fd3
Minor: fix PublicKey.toShortString after the switch to ed25519
2016-07-06 16:04:10 +01:00
6fb7e59b91
Upgrade dependencies, July edition.
2016-07-06 13:56:22 +01:00
0cf54d1c1f
test dsl: Comment full stops
2016-07-06 13:25:08 +01:00
26d8973746
test dsl: Add TODO on type synonyms
2016-07-06 13:25:08 +01:00
f177b1ffaa
test dsl: LastLineShouldTestForVerifiesOrFails->EnforceVerifyOrFail
2016-07-06 13:25:08 +01:00
e31b769fef
test dsl: Dsl->DSL, add top-level transaction primitive, add ledger-embedded signAll, other cosmetics
2016-07-06 13:25:08 +01:00
e3d6f51049
contracts, core, node: Port TransactionForTest tests to new DSL
2016-07-06 13:25:08 +01:00
a27f195b4f
core: Add LastLineShouldBeVerifiesOrFails, fix attachment primitive, Java interop
2016-07-06 13:25:08 +01:00
f4a6a43aa6
contracts, core: Port CommercialPaperTests, IRSTests, ObligationTests, TransactioGroupTests
2016-07-06 13:25:08 +01:00
cb47e00feb
core: Add convenience input(), remove TransactionGroupDSL
2016-07-06 13:25:08 +01:00
9b36df607e
core: Remove binding of State type in test dsl
2016-07-06 13:25:08 +01:00
bf4272b64a
core: transaction/ledger DSL interfaces and implementation for tests
2016-07-06 13:25:08 +01:00
5c0e7fbbf2
Moved topic parameter from send/receive methods to a ProtocolLogic property
2016-07-05 15:12:25 +01:00
a02263937c
send and sendAndReceive use Party for the destination
2016-06-30 12:04:39 +01:00
5271882dcd
Event scheduling and docs for event scheduling
2016-06-30 08:51:52 +01:00
b3af0ce218
Merged in rnicoll-upgrade-infrastructure (pull request #193 )
...
Infrastructure ahead of contract upgrade support
2016-06-29 17:26:44 +01:00
11eff398a0
Minor: Typo (classfiles -> class files)
2016-06-29 17:16:47 +01:00
c767638127
Move DummyContract.State into its own file
...
DummyContract.State isn't actually used by the DummyContract any more, so shouldn't
be part of that contract class.
2016-06-29 17:16:46 +01:00
779034691e
Add AbstractTransactionSubstitutionProtocol
...
Abstracts the NotaryChangeProtocol to be extensible for other use-cases.
2016-06-29 17:16:46 +01:00
dd9a653ab4
TransactionBuilder: added a comment explaining the default notary parameter purpose
2016-06-29 16:32:29 +01:00
cfe54c5f21
Fix up bug in attachment Zip file processing when path might not be normalised to start with
2016-06-29 09:10:18 +01:00
9d4f75f241
Improved readability and brevity of hasEmojiTerminal.
2016-06-28 14:03:32 +01:00
bef4258430
Fixed Emoji crash where LANG envvar is not defined in particularly exotic setups (msys bash in Powershell for example)
2016-06-28 14:03:32 +01:00
47decb3bbe
coree: Expose MOCK_IDENTITY_SERVICE as MockIndentityService instead of IdentityService
2016-06-24 18:33:53 +01:00
5973725186
core: Make top-level side-effecting getters lazy instead
2016-06-24 18:33:21 +01:00
10d8f5cd06
core: Add comment on how to define globals for the Java test DSL
2016-06-24 16:37:43 +01:00
bc326660a3
contracts, core: Fix static init cycle issue of JavaTestHelpers
2016-06-24 16:37:43 +01:00
341adafd3a
contracts, core: Rename Java to JavaTestHelpers
2016-06-24 16:37:43 +01:00
040e51ec12
contracts, core: Expose top-level DSL values/functions to Java by wrapping them in an object
...
core: Add overloads for convenient Java interop
contracts, core: Uniform Java interop for tests, use camelCase
2016-06-24 16:37:43 +01:00
bec1ab7a7e
core: Add javadoc on how to be Java-compatible with the Kotlin DSL
2016-06-24 16:37:43 +01:00
6109065dee
core: Use LastLineShouldTestForAcceptOrFailure trick on rejects()
2016-06-24 16:37:43 +01:00
2d8d5571c2
core: Add more info to ClashingThreads exception
2016-06-23 18:06:57 +01:00
57270c8c66
core: Add nonce to DummyLinearState
2016-06-23 18:06:57 +01:00
6bab0eb79f
core: Add comment about Wallet.states
2016-06-23 18:06:57 +01:00
f233780e08
core: Add DummyLinearState and AlwaysSucceedContract for testing
2016-06-23 18:06:57 +01:00