55import com .openelements .hiero .base .data .Account ;
66import com .hedera .hashgraph .sdk .Hbar ;
77import com .openelements .hiero .base .HieroException ;
8- import com .openelements .hiero .base .protocol .data .*;
8+ import com .openelements .hiero .base .protocol .data .AccountCreateResult ;
9+ import com .openelements .hiero .base .protocol .data .AccountCreateRequest ;
10+ import com .openelements .hiero .base .protocol .data .AccountBalanceResponse ;
11+ import com .openelements .hiero .base .protocol .data .AccountBalanceRequest ;
12+ import com .openelements .hiero .base .protocol .data .AccountDeleteRequest ;
913import com .openelements .hiero .base .protocol .ProtocolLayerClient ;
1014import org .junit .jupiter .api .BeforeEach ;
1115import org .junit .jupiter .api .Test ;
1216import org .mockito .ArgumentMatchers ;
13-
1417import static org .junit .jupiter .api .Assertions .assertEquals ;
1518import static org .junit .jupiter .api .Assertions .assertNotNull ;
1619import static org .junit .jupiter .api .Assertions .assertThrows ;
1720import static org .junit .jupiter .api .Assertions .assertTrue ;
18-
1921import static org .mockito .ArgumentMatchers .any ;
20- import static org .mockito .Mockito .*;
22+ import static org .mockito .Mockito .mock ;
23+ import static org .mockito .Mockito .when ;
24+ import static org .mockito .Mockito .doThrow ;
25+ import static org .mockito .Mockito .verify ;
26+ import static org .mockito .Mockito .times ;
2127
2228public class AccountClientImplTest {
2329
@@ -35,7 +41,6 @@ public void testGetAccountBalance_ValidPositiveBalance() throws HieroException {
3541 AccountId accountId = AccountId .fromString ("0.0.12345" );
3642 Hbar expectedBalance = new Hbar (10 );
3743
38- // Mock the response
3944 AccountBalanceResponse mockResponse = mock (AccountBalanceResponse .class );
4045 when (mockResponse .hbars ()).thenReturn (expectedBalance );
4146
@@ -98,7 +103,6 @@ public void testGetAccountBalance_ProtocolLayerClientFails() throws HieroExcepti
98103 });
99104 }
100105
101- //tests for createAccount method
102106 @ Test
103107 void testCreateAccount_successful () throws HieroException {
104108 Hbar initialBalance = Hbar .from (100 );
0 commit comments