Skip to content

Commit 9f631a1

Browse files
Merge pull request #195 from OpenElements/build-test
Test build is fixed
2 parents f8e7399 + 26ad88b commit 9f631a1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

hiero-enterprise-base/src/test/java/com/openelements/hiero/base/test/AccountClientImplTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void setUp() {
3030
}
3131

3232
@Test
33-
public void testGetAccountBalance_ValidPositiveBalance() throws HieroException {
33+
public void testGetAccountBalanceValidPositiveBalance() throws HieroException {
3434
AccountId accountId = AccountId.fromString("0.0.12345");
3535
Hbar expectedBalance = new Hbar(10);
3636

@@ -48,7 +48,7 @@ public void testGetAccountBalance_ValidPositiveBalance() throws HieroException {
4848
}
4949

5050
@Test
51-
public void testGetAccountBalance_ZeroBalance() throws HieroException {
51+
public void testGetAccountBalanceZeroBalance() throws HieroException {
5252
AccountId accountId = AccountId.fromString("0.0.67890");
5353
Hbar expectedBalance = new Hbar(0);
5454

@@ -65,7 +65,7 @@ public void testGetAccountBalance_ZeroBalance() throws HieroException {
6565
}
6666

6767
@Test
68-
public void testGetAccountBalance_InvalidAccount_ThrowsException() throws HieroException {
68+
public void testGetAccountBalanceInvalidAccountThrowsException() throws HieroException {
6969
AccountId invalidAccountId = AccountId.fromString("0.0.9999999");
7070

7171
when(mockProtocolLayerClient.executeAccountBalanceQuery(
@@ -78,14 +78,14 @@ public void testGetAccountBalance_InvalidAccount_ThrowsException() throws HieroE
7878
}
7979

8080
@Test
81-
public void testGetAccountBalance_NullThrowsException() {
81+
public void testGetAccountBalanceNullThrowsException() {
8282
assertThrows(NullPointerException.class, () -> {
8383
accountClientImpl.getAccountBalance((AccountId) null);
8484
});
8585
}
8686

8787
@Test
88-
public void testGetAccountBalance_ProtocolLayerClientFails() throws HieroException {
88+
public void testGetAccountBalanceProtocolLayerClientFails() throws HieroException {
8989
AccountId accountId = AccountId.fromString("0.0.12345");
9090

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

100100
//tests for createAccount method
101101
@Test
102-
void testCreateAccount_successful() throws HieroException {
102+
void testCreateAccountSuccessful() throws HieroException {
103103
Hbar initialBalance = Hbar.from(100);
104104

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

121121
@Test
122-
void testCreateAccount_invalidInitialBalance_null() {
122+
void testCreateAccountInvalidInitialBalanceNull() {
123123
Hbar initialBalance = null;
124124

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

137137

138138
@Test
139-
void testCreateAccount_hieroExceptionThrown() throws HieroException {
139+
void testCreateAccountHieroExceptionThrown() throws HieroException {
140140
Hbar initialBalance = Hbar.from(100);
141141

142142
when(mockProtocolLayerClient.executeAccountCreateTransaction(any(AccountCreateRequest.class)))

0 commit comments

Comments
 (0)