Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
109 1 0 6 93.578% 13.299

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% 0.846
com.syntifi.near.api.model.accesskey.permission 2 0 0 0 100% 0.088
com.syntifi.near.api.service 98 1 0 6 92.857% 12.365

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.013
PrivateKeyTest 2 0 0 0 100% 0.018
SignatureTest 2 0 0 0 100% 0.753
WalletTest 1 0 0 0 100% 0.056
KeySigTest 2 0 0 0 100% 0.006

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

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

com.syntifi.near.api.service

Class Tests Errors Failures Skipped Success Rate Time
WalletServiceTest 4 0 0 0 100% 0.012
NearServiceTest 89 0 0 6 93.258% 5.558
TransactionServiceTest 5 1 0 0 80% 6.795

Test Cases

[Summary] [Package List] [Test Cases]

PublicKeyTest

loadWalletFromString_and_loadAPublicKey 0.001
getPublicKey_with_invalidKeyType_should_throw_NoSuchTypeException 0.001

PermissionTypeDataTest

getClassByName_validName_shouldReturn_correctClass 0.057
getClassByName_invalidName_shouldThrow_NoSuchTypeException 0.003

WalletServiceTest

writeWalletToFile_invalidPath_should_throw_IOException 0.001
loadWalletFromFile_should_load_to_Wallet 0.001
writeWalletToFile_should_write_wallet_to_file 0.001
loadWalletFromFile_inexist_should_throw_IOException 0

PrivateKeyTest

getPrivateKey_with_invalidKeyType_should_throw_NoSuchTypeException 0.014
loadWalletFromString_and_loadAPrivateKey 0.002

SignatureTest

loadPrivateAndPublicKey_matchesDerivedPublicKey 0.026
loadPrivateAndPublicKey_Sign_and_Verify_should_be_valid 0.01

NearServiceTest

viewContractCode_byHeight_contractCode_notNull 0.149
loadedFromExample_contractStateChanges 0.025
viewSingleAccessKeyChanges_byHash_accessKey_notNull 0.101
loadedFromExample_transactionStatus 0.054
getProtocolConfig_byFinality_protocolConfig_notNull 0.178
viewAccountChanges_byHeight_account_notNull 0.096
viewSingleAccessKeyChanges_byFinality_accessKey_notNull 0.102
viewContractState_byHeight_contractCode_notNull 0
Too large contract state! (https://docs.near.org/docs/api/rpc/contracts#view-contract-state)
loadedFromExample_account 0.007
viewContractCodeChanges_byFinality_contractCodeChanges_notNull 0.087
viewSingleAccessKeyChanges_byHeight_accessKey_notNull 0.085
getTransactionReceipt_transactionReceipt_notNull 0.121
callContractFunction_byHeight_contractFunctionCallResult_notNull 0.099
getBlock_byHash_block_notNull 0.101
getNodeStatus_nodeStatus_notNull 0.107
loadedFromExample_blockChanges 0.005
viewContractCode_byFinality_contractCode_notNull 0.094
loadedFromExample_transactionAsync 0.005
loadedFromExample_transactionAwait 0.008
viewAccessKey_byHash_accessKey_notNull 0.089
loadedFromExample_accountChanges 0.004
viewAccessKeyList_byFinality_accessKey_notNull 0.103
sendTransactionAsync_transactionHash_notNull 0.079
loadedFromExample_contractFunctionCallResult 0.003
viewContractStateChanges_byHash_contractStateChanges_notNull 0.11
loadedFromExample_transactionReceipt 0.002
getChunkDetails_byBlockHashAndShardId_chunk_notNull 0.086
viewAccountChanges_byHash_account_notNull 0.093
callContractFunction_byHash_contractFunctionCallResult_notNull 0.108
sendTransactionAwait_transaction_notNull 0
Error expired! (https://docs.near.org/docs/api/rpc/transactions#send-transaction-await)
getBlock_byFinality_block_notNull 0.081
loadedFromExample_accessKeyChangesAll 0.016
loadedFromExample_transactionStatusWithReceipts 0.012
getBlockChanges_byHeight_blockChanges_notNull 0.091
viewAccessKeyList_byHash_accessKey_notNull 0.082
loadedFromExample_block 0.006
loadedFromExample_chunk 0.002
loadedFromExample_accessKey 0.004
viewAccountChanges_byFinality_account_notNull 0.083
loadedFromExample_contractCodeChanges 0.004
getNetworkValidationStatus_byNull_validationStatus_notNull 0.119
loadedFromExample_validationStatus 0.027
getBlock_byHeight_block_notNull 0.086
getTransactionStatus_transactionStatus_notNull 0.159
getBlock_byHash_block_notNull_with_validator_proposals 0.087
loadError_validInput_doesHaveErrorData 0.001
viewAccessKey_byHeight_accessKey_notNull 0.086
loadedFromExample_accessKeyList 0.009
getGasPrice_byBlockNumber_gasPrice_notNull 0.085
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.094
loadedFromExample_genesisConfig 0.02
viewAllAccessKeyChanges_byHash_accessKey_notNull 0.082
loadedFromExample_nodeStatus 0.006
getProtocolConfig_byHash_protocolConfig_notNullProtocolVersion 0.081
loadError_invalidInput_doesNotHaveErrorData 0.007
viewAllAccessKeyChanges_byHeight_accessKey_notNull 0.092
viewContractCodeChanges_byHash_contractCodeChanges_notNull 0.081
getGasPrice_byNull_gasPrice_notNull 0.08
loadedFromExample_contractState 0.013
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.008
viewAccount_byHeight_account_notNull 0.092
viewContractCode_byHash_contractCode_notNull 0.099
loadedFromExample_accessKeyChangesSingle 0.001
getBlockChanges_byHash_blockChanges_notNull 0.108
viewAccount_byHash_account_notNull 0.079
viewAccount_byFinality_account_notNull 0.084
getGenesisConfig_genesisConfig_notNull 0.086
getProtocolConfig_byHeight_protocolConfig_notNullProtocolVersion 0.085
loadedFromExample_gasPrice 0.001
loadedFromExample_protocolConfig 0.006
getBlock_byHash_invalidInput_shouldThrow_NearServiceException 0.081
viewAccessKey_byFinality_accessKey_notNull 0.08
getNetworkInfo_networkInfo_notNull 0.11
getGasPrice_byBlockHash_gasPrice_notNull 0.079
getBlockChanges_byFinality_blockChanges_notNull 0.08
viewContractStateChanges_byHeight_contractStateChanges_notNull 0.085
getTransactionStatusWithReceipts_transactionStatusWithReceipts_notNull 0.094
callContractFunction_byFinality_contractFunctionCallResult_notNull 0.081
viewAccessKeyList_byHeight_accessKey_notNull 0.085
loadedFromExample_contractCode 0.002
getChunkDetails_byBlockHeightAndShardId_chunk_notNull 0.09
loadedFromExample_networkInfo 0.003
viewAllAccessKeyChanges_byFinality_accessKey_notNull 0.091
getChunkDetails_byChunkId_chunk_notNull 0.079
viewContractCodeChanges_byHeight_contractCodeChanges_notNull 0.083

TransactionServiceTest

sent100toBobAwait_should_getStatus_SuccessValueStatus 5.781
sent100toAliceAwait_should_getStatus_SuccessValueStatus 0.28
sent100toBobAsync_should_getStatus_SuccessValueStatus 0.256
sent100toAliceAsync_should_getStatus_SuccessValueStatus 0.269
serializeSignAndDeserializeVerifyTransaction_should_match 0.193

WalletTest

loadWallet_should_load_ok 0.055

KeySigTest

fromEncodedBase58String_with_invalid_keyType_should_throw_NoSuchTypeException 0.001
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)
sent100toAliceAwait_should_getStatus_SuccessValueStatus
com.syntifi.near.api.service.exception.NearServiceException