5
5
import com .openelements .hiero .base .data .Account ;
6
6
import com .hedera .hashgraph .sdk .Hbar ;
7
7
import 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 ;
9
13
import com .openelements .hiero .base .protocol .ProtocolLayerClient ;
10
14
import org .junit .jupiter .api .BeforeEach ;
11
15
import org .junit .jupiter .api .Test ;
12
16
import org .mockito .ArgumentMatchers ;
13
-
14
17
import static org .junit .jupiter .api .Assertions .assertEquals ;
15
18
import static org .junit .jupiter .api .Assertions .assertNotNull ;
16
19
import static org .junit .jupiter .api .Assertions .assertThrows ;
17
20
import static org .junit .jupiter .api .Assertions .assertTrue ;
18
-
19
21
import 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 ;
21
27
22
28
public class AccountClientImplTest {
23
29
@@ -35,7 +41,6 @@ public void testGetAccountBalance_ValidPositiveBalance() throws HieroException {
35
41
AccountId accountId = AccountId .fromString ("0.0.12345" );
36
42
Hbar expectedBalance = new Hbar (10 );
37
43
38
- // Mock the response
39
44
AccountBalanceResponse mockResponse = mock (AccountBalanceResponse .class );
40
45
when (mockResponse .hbars ()).thenReturn (expectedBalance );
41
46
@@ -98,7 +103,6 @@ public void testGetAccountBalance_ProtocolLayerClientFails() throws HieroExcepti
98
103
});
99
104
}
100
105
101
- //tests for createAccount method
102
106
@ Test
103
107
void testCreateAccount_successful () throws HieroException {
104
108
Hbar initialBalance = Hbar .from (100 );
0 commit comments