Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void setUp() {
}

@Test
public void testGetAccountBalance_ValidPositiveBalance() throws HieroException {
public void testGetAccountBalanceValidPositiveBalance() throws HieroException {
AccountId accountId = AccountId.fromString("0.0.12345");
Hbar expectedBalance = new Hbar(10);

Expand All @@ -48,7 +48,7 @@ public void testGetAccountBalance_ValidPositiveBalance() throws HieroException {
}

@Test
public void testGetAccountBalance_ZeroBalance() throws HieroException {
public void testGetAccountBalanceZeroBalance() throws HieroException {
AccountId accountId = AccountId.fromString("0.0.67890");
Hbar expectedBalance = new Hbar(0);

Expand All @@ -65,7 +65,7 @@ public void testGetAccountBalance_ZeroBalance() throws HieroException {
}

@Test
public void testGetAccountBalance_InvalidAccount_ThrowsException() throws HieroException {
public void testGetAccountBalanceInvalidAccountThrowsException() throws HieroException {
AccountId invalidAccountId = AccountId.fromString("0.0.9999999");

when(mockProtocolLayerClient.executeAccountBalanceQuery(
Expand All @@ -78,14 +78,14 @@ public void testGetAccountBalance_InvalidAccount_ThrowsException() throws HieroE
}

@Test
public void testGetAccountBalance_NullThrowsException() {
public void testGetAccountBalanceNullThrowsException() {
assertThrows(NullPointerException.class, () -> {
accountClientImpl.getAccountBalance((AccountId) null);
});
}

@Test
public void testGetAccountBalance_ProtocolLayerClientFails() throws HieroException {
public void testGetAccountBalanceProtocolLayerClientFails() throws HieroException {
AccountId accountId = AccountId.fromString("0.0.12345");

when(mockProtocolLayerClient.executeAccountBalanceQuery(
Expand All @@ -99,7 +99,7 @@ public void testGetAccountBalance_ProtocolLayerClientFails() throws HieroExcepti

//tests for createAccount method
@Test
void testCreateAccount_successful() throws HieroException {
void testCreateAccountSuccessful() throws HieroException {
Hbar initialBalance = Hbar.from(100);

AccountCreateResult mockResult = mock(AccountCreateResult.class);
Expand All @@ -119,7 +119,7 @@ void testCreateAccount_successful() throws HieroException {
}

@Test
void testCreateAccount_invalidInitialBalance_null() {
void testCreateAccountInvalidInitialBalanceNull() {
Hbar initialBalance = null;

assertThrows(NullPointerException.class, () -> accountClientImpl.createAccount(initialBalance));
Expand All @@ -136,7 +136,7 @@ void testCreateAccount_invalidInitialBalance_negative() {


@Test
void testCreateAccount_hieroExceptionThrown() throws HieroException {
void testCreateAccountHieroExceptionThrown() throws HieroException {
Hbar initialBalance = Hbar.from(100);

when(mockProtocolLayerClient.executeAccountCreateTransaction(any(AccountCreateRequest.class)))
Expand Down