Translations: Lightweight Contracts/252/en: Difference between revisions

From ArdorDocs
Jump to: navigation, search
(Importing a new version from external source)
 
(No difference)

Latest revision as of 00:38, 11 August 2020

Message definition (Lightweight Contracts)
For each of the sample contracts provided with the product, there is also a matching unit test class with the same name followed by a "Test" postfix. For example contract <code>HelloWorld</code> has a unit test named <code>HelloWorldTest</code>. 
Unit tests rely on the junit framework, each unit test starts from a clean blockchain copy, which only includes the Genesis block, it then deploys a contract, perform some actions on the contract and tests the output transactions.

For each of the sample contracts provided with the product, there is also a matching unit test class with the same name followed by a "Test" postfix. For example contract HelloWorld has a unit test named HelloWorldTest. Unit tests rely on the junit framework, each unit test starts from a clean blockchain copy, which only includes the Genesis block, it then deploys a contract, perform some actions on the contract and tests the output transactions.