Test DSL: update tests to handle new transaction constraints

This commit is contained in:
Andrius Dagys
2017-08-09 16:17:26 +01:00
parent f5776d6bd7
commit 73664c3383
13 changed files with 32 additions and 26 deletions

View File

@ -169,8 +169,6 @@ class Cap {
output { stateInitial }
timeWindow(TEST_TX_TIME_1)
this `fails with` "transaction has a single command"
tweak {
command(acmeCorp.owningKey) { UniversalContract.Commands.Issue() }
this `fails with` "the transaction is signed by all liable parties"

View File

@ -56,8 +56,6 @@ class Caplet {
output { stateStart }
timeWindow(TEST_TX_TIME_1)
this `fails with` "transaction has a single command"
tweak {
command(acmeCorp.owningKey) { UniversalContract.Commands.Issue() }
this `fails with` "the transaction is signed by all liable parties"

View File

@ -53,8 +53,6 @@ class FXFwdTimeOption
output { inState }
timeWindow(TEST_TX_TIME_1)
this `fails with` "transaction has a single command"
tweak {
command(acmeCorp.owningKey) { UniversalContract.Commands.Issue() }
this `fails with` "the transaction is signed by all liable parties"

View File

@ -45,8 +45,6 @@ class FXSwap {
output { inState }
timeWindow(TEST_TX_TIME_1)
this `fails with` "transaction has a single command"
tweak {
command(acmeCorp.owningKey) { UniversalContract.Commands.Issue() }
this `fails with` "the transaction is signed by all liable parties"

View File

@ -136,8 +136,6 @@ class IRS {
output { stateInitial }
timeWindow(TEST_TX_TIME_1)
this `fails with` "transaction has a single command"
tweak {
command(acmeCorp.owningKey) { UniversalContract.Commands.Issue() }
this `fails with` "the transaction is signed by all liable parties"

View File

@ -145,8 +145,6 @@ class RollOutTests {
output { stateStart }
timeWindow(TEST_TX_TIME_1)
this `fails with` "transaction has a single command"
tweak {
command(acmeCorp.owningKey) { UniversalContract.Commands.Issue() }
this `fails with` "the transaction is signed by all liable parties"

View File

@ -62,8 +62,6 @@ class Swaption {
output { stateInitial }
timeWindow(TEST_TX_TIME_1)
this `fails with` "transaction has a single command"
tweak {
command(acmeCorp.owningKey) { UniversalContract.Commands.Issue() }
this `fails with` "the transaction is signed by all liable parties"

View File

@ -48,12 +48,9 @@ class ZeroCouponBond {
@Test
fun `issue - signature`() {
transaction {
output { inState }
this `fails with` "transaction has a single command"
tweak {
command(acmeCorp.owningKey) { UniversalContract.Commands.Issue() }
this `fails with` "the transaction is signed by all liable parties"