Skip to content

Commit e7975ca

Browse files
Added run configurations to build and release. Refactored naming of transaction specifications.
1 parent ac2a385 commit e7975ca

14 files changed

+14
-14
lines changed

.idea/runConfigurations/Run_Contract_Tests.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Run_Workflow_Tests.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ import java.security.PublicKey
2525
* @param signingKey The signing key for which the command should be signed.
2626
* @param type The command type that should be signed.
2727
*/
28-
class HasCommandSignatureOfType(signingKey: PublicKey, type: Class<out CommandData>) :
28+
class HasCommandSignatureSpecification(signingKey: PublicKey, type: Class<out CommandData>) :
2929
TransactionFunctionSpecification({ signingKey in commandsOfType(type).flatMap { it.signers } })
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ import net.corda.core.contracts.ContractState
2323
*
2424
* @param type The contract state type that must be used as an input in the transaction.
2525
*/
26-
class HasInputsOfTypeTransactionSpecification(type: Class<out ContractState>) :
26+
class HasInputsOfTypeSpecification(type: Class<out ContractState>) :
2727
TransactionFunctionSpecification({ inputsOfType(type).isNotEmpty() })
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ import net.corda.core.contracts.ContractState
2323
*
2424
* @param type The contract state type that must be used as an output in the transaction.
2525
*/
26-
class HasOutputsOfTypeTransactionSpecification(type: Class<out ContractState>) :
26+
class HasOutputsOfTypeSpecification(type: Class<out ContractState>) :
2727
TransactionFunctionSpecification({ outputsOfType(type).isNotEmpty() })
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ import net.corda.core.contracts.ContractState
2323
*
2424
* @param type The contract state type that must be used as an reference in the transaction.
2525
*/
26-
class HasReferencesOfTypeTransactionSpecification(type: Class<out ContractState>) :
26+
class HasReferencesOfTypeSpecification(type: Class<out ContractState>) :
2727
TransactionFunctionSpecification({ referenceInputsOfType(type).isNotEmpty() })
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ import net.corda.core.contracts.ContractState
2323
*
2424
* @param type The contract state type that must be used as a single input in the transaction.
2525
*/
26-
class HasSingleInputOfTypeTransactionSpecification(type: Class<out ContractState>) :
26+
class HasSingleInputOfTypeSpecification(type: Class<out ContractState>) :
2727
TransactionFunctionSpecification({ inputsOfType(type).size == 1 })
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ import net.corda.core.contracts.ContractState
2323
*
2424
* @param type The contract state type that must be used as a single output in the transaction.
2525
*/
26-
class HasSingleOutputOfTypeTransactionSpecification(type: Class<out ContractState>) :
26+
class HasSingleOutputOfTypeSpecification(type: Class<out ContractState>) :
2727
TransactionFunctionSpecification({ outputsOfType(type).size == 1 })
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ import net.corda.core.contracts.ContractState
2323
*
2424
* @param type The contract state type that must be used as a single reference in the transaction.
2525
*/
26-
class HasSingleReferenceOfTypeTransactionSpecification(type: Class<out ContractState>) :
26+
class HasSingleReferenceOfTypeSpecification(type: Class<out ContractState>) :
2727
TransactionFunctionSpecification({ referenceInputsOfType(type).size == 1 })
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ import java.security.PublicKey
2323
*
2424
* @param signingKey The signing key for which the transaction should be signed.
2525
*/
26-
class HasSignatureTransactionSpecification(signingKey: PublicKey) :
26+
class HasTransactionSignatureSpecification(signingKey: PublicKey) :
2727
TransactionFunctionSpecification({ signingKey in commands.flatMap { it.signers } })

0 commit comments

Comments
 (0)