Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
109 0 0 6 94.495% 15.43

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
com.syntifi.near.api.model.key 9 0 0 0 100% 1.043
com.syntifi.near.api.model.accesskey.permission 2 0 0 0 100% 0.079
com.syntifi.near.api.service 98 0 0 6 93.878% 14.308

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

com.syntifi.near.api.model.key

Class Tests Errors Failures Skipped Success Rate Time
PublicKeyTest 2 0 0 0 100% 0.031
PrivateKeyTest 2 0 0 0 100% 0.024
SignatureTest 2 0 0 0 100% 0.911
WalletTest 1 0 0 0 100% 0.061
KeySigTest 2 0 0 0 100% 0.016

com.syntifi.near.api.model.accesskey.permission

Class Tests Errors Failures Skipped Success Rate Time
PermissionTypeDataTest 2 0 0 0 100% 0.079

com.syntifi.near.api.service

Class Tests Errors Failures Skipped Success Rate Time
WalletServiceTest 4 0 0 0 100% 0.005
NearServiceTest 89 0 0 6 93.258% 4.29
TransactionServiceTest 5 0 0 0 100% 10.013

Test Cases

[Summary] [Package List] [Test Cases]

PublicKeyTest

loadWalletFromString_and_loadAPublicKey 0.022
getPublicKey_with_invalidKeyType_should_throw_NoSuchTypeException 0.001

PermissionTypeDataTest

getClassByName_validName_shouldReturn_correctClass 0.057
getClassByName_invalidName_shouldThrow_NoSuchTypeException 0.001

WalletServiceTest

writeWalletToFile_invalidPath_should_throw_IOException 0.001
loadWalletFromFile_should_load_to_Wallet 0.001
writeWalletToFile_should_write_wallet_to_file 0.002
loadWalletFromFile_inexist_should_throw_IOException 0

PrivateKeyTest

getPrivateKey_with_invalidKeyType_should_throw_NoSuchTypeException 0.014
loadWalletFromString_and_loadAPrivateKey 0.002

SignatureTest

loadPrivateAndPublicKey_matchesDerivedPublicKey 0.042
loadPrivateAndPublicKey_Sign_and_Verify_should_be_valid 0.016

NearServiceTest

viewContractCode_byHeight_contractCode_notNull 0.085
loadedFromExample_contractStateChanges 0.014
viewSingleAccessKeyChanges_byHash_accessKey_notNull 0.073
loadedFromExample_transactionStatus 0.054
getProtocolConfig_byFinality_protocolConfig_notNull 0.118
viewAccountChanges_byHeight_account_notNull 0.071
viewSingleAccessKeyChanges_byFinality_accessKey_notNull 0.069
viewContractState_byHeight_contractCode_notNull 0
Too large contract state! (https://docs.near.org/docs/api/rpc/contracts#view-contract-state)
loadedFromExample_account 0.009
viewContractCodeChanges_byFinality_contractCodeChanges_notNull 0.061
viewSingleAccessKeyChanges_byHeight_accessKey_notNull 0.055
getTransactionReceipt_transactionReceipt_notNull 0.066
callContractFunction_byHeight_contractFunctionCallResult_notNull 0.075
getBlock_byHash_block_notNull 0.074
getNodeStatus_nodeStatus_notNull 0.062
loadedFromExample_blockChanges 0.005
viewContractCode_byFinality_contractCode_notNull 0.071
loadedFromExample_transactionAsync 0.005
loadedFromExample_transactionAwait 0.01
viewAccessKey_byHash_accessKey_notNull 0.055
loadedFromExample_accountChanges 0.007
viewAccessKeyList_byFinality_accessKey_notNull 0.057
sendTransactionAsync_transactionHash_notNull 0.056
loadedFromExample_contractFunctionCallResult 0.004
viewContractStateChanges_byHash_contractStateChanges_notNull 0.107
loadedFromExample_transactionReceipt 0.002
getChunkDetails_byBlockHashAndShardId_chunk_notNull 0.06
viewAccountChanges_byHash_account_notNull 0.056
callContractFunction_byHash_contractFunctionCallResult_notNull 0.066
sendTransactionAwait_transaction_notNull 0
Error expired! (https://docs.near.org/docs/api/rpc/transactions#send-transaction-await)
getBlock_byFinality_block_notNull 0.056
loadedFromExample_accessKeyChangesAll 0.016
loadedFromExample_transactionStatusWithReceipts 0.022
getBlockChanges_byHeight_blockChanges_notNull 0.063
viewAccessKeyList_byHash_accessKey_notNull 0.075
loadedFromExample_block 0.007
loadedFromExample_chunk 0.005
loadedFromExample_accessKey 0.015
viewAccountChanges_byFinality_account_notNull 0.078
loadedFromExample_contractCodeChanges 0.005
getNetworkValidationStatus_byNull_validationStatus_notNull 0.101
loadedFromExample_validationStatus 0.042
getBlock_byHeight_block_notNull 0.059
getTransactionStatus_transactionStatus_notNull 0.106
getBlock_byHash_block_notNull_with_validator_proposals 0.056
loadError_validInput_doesHaveErrorData 0.005
viewAccessKey_byHeight_accessKey_notNull 0.057
loadedFromExample_accessKeyList 0.01
getGasPrice_byBlockNumber_gasPrice_notNull 0.161
getNetworkValidationStatus_byBlockNumber_validationStatus_notNull 0
No validators found! (https://docs.near.org/docs/api/rpc/network#validation-status)
getNetworkValidationStatus_byBlockHash_validationStatus_notNull 0
No validators found! (https://docs.near.org/docs/api/rpc/network#validation-status)
viewContractStateChanges_byFinality_contractStateChanges_notNull 0.069
loadedFromExample_genesisConfig 0.022
viewAllAccessKeyChanges_byHash_accessKey_notNull 0.053
loadedFromExample_nodeStatus 0.007
getProtocolConfig_byHash_protocolConfig_notNullProtocolVersion 0.056
loadError_invalidInput_doesNotHaveErrorData 0.008
viewAllAccessKeyChanges_byHeight_accessKey_notNull 0.054
viewContractCodeChanges_byHash_contractCodeChanges_notNull 0.059
getGasPrice_byNull_gasPrice_notNull 0.05
loadedFromExample_contractState 0.009
viewContractState_byHash_contractCode_notNull 0
Too large contract state! (https://docs.near.org/docs/api/rpc/contracts#view-contract-state)
viewContractState_byFinality_contractCode_notNull 0
Too large contract state! (https://docs.near.org/docs/api/rpc/contracts#view-contract-state)
loadedJson_accessKeyChangesAll_invalidPropertyPermission_shouldThrow_NoSuchTypeException 0.003
viewAccount_byHeight_account_notNull 0.056
viewContractCode_byHash_contractCode_notNull 0.06
loadedFromExample_accessKeyChangesSingle 0.003
getBlockChanges_byHash_blockChanges_notNull 0.053
viewAccount_byHash_account_notNull 0.051
viewAccount_byFinality_account_notNull 0.093
getGenesisConfig_genesisConfig_notNull 0.06
getProtocolConfig_byHeight_protocolConfig_notNullProtocolVersion 0.054
loadedFromExample_gasPrice 0.002
loadedFromExample_protocolConfig 0.006
getBlock_byHash_invalidInput_shouldThrow_NearServiceException 0.05
viewAccessKey_byFinality_accessKey_notNull 0.197
getNetworkInfo_networkInfo_notNull 0.074
getGasPrice_byBlockHash_gasPrice_notNull 0.071
getBlockChanges_byFinality_blockChanges_notNull 0.077
viewContractStateChanges_byHeight_contractStateChanges_notNull 0.058
getTransactionStatusWithReceipts_transactionStatusWithReceipts_notNull 0.062
callContractFunction_byFinality_contractFunctionCallResult_notNull 0.058
viewAccessKeyList_byHeight_accessKey_notNull 0.056
loadedFromExample_contractCode 0.002
getChunkDetails_byBlockHeightAndShardId_chunk_notNull 0.055
loadedFromExample_networkInfo 0.004
viewAllAccessKeyChanges_byFinality_accessKey_notNull 0.055
getChunkDetails_byChunkId_chunk_notNull 0.057
viewContractCodeChanges_byHeight_contractCodeChanges_notNull 0.054

TransactionServiceTest

sent100toBobAwait_should_getStatus_SuccessValueStatus 5.707
sent100toAliceAwait_should_getStatus_SuccessValueStatus 3.793
sent100toBobAsync_should_getStatus_SuccessValueStatus 0.204
sent100toAliceAsync_should_getStatus_SuccessValueStatus 0.176
serializeSignAndDeserializeVerifyTransaction_should_match 0.122

WalletTest

loadWallet_should_load_ok 0.059

KeySigTest

fromEncodedBase58String_with_invalid_keyType_should_throw_NoSuchTypeException 0.013
fromEncodedBase58String_with_invalid_class_should_throw_NoSuchTypeException 0.002

Failure Details

[Summary] [Package List] [Test Cases]


viewContractState_byHeight_contractCode_notNull
skipped: Too large contract state! (https://docs.near.org/docs/api/rpc/contracts#view-contract-state)
sendTransactionAwait_transaction_notNull
skipped: Error expired! (https://docs.near.org/docs/api/rpc/transactions#send-transaction-await)
getNetworkValidationStatus_byBlockNumber_validationStatus_notNull
skipped: No validators found! (https://docs.near.org/docs/api/rpc/network#validation-status)
getNetworkValidationStatus_byBlockHash_validationStatus_notNull
skipped: No validators found! (https://docs.near.org/docs/api/rpc/network#validation-status)
viewContractState_byHash_contractCode_notNull
skipped: Too large contract state! (https://docs.near.org/docs/api/rpc/contracts#view-contract-state)
viewContractState_byFinality_contractCode_notNull
skipped: Too large contract state! (https://docs.near.org/docs/api/rpc/contracts#view-contract-state)