File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
etherscanapi/src/test/java/jfyg/utils Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ package jfyg.utils
2+
3+ import org.junit.Assert
4+ import org.junit.Test
5+
6+ class QueryUtilsTest {
7+
8+ @Test
9+ fun retrieveAccounts () {
10+ var getAccounts = " "
11+ val accounts = ArrayList <String >()
12+ accounts.add(" 0x82e4499D4b2A669831a3881d61BB24f7b620c61a" )
13+ accounts.add(" 0x63a9975ba31b0b9626b34300f7f627147df1f526" )
14+ accounts.add(" 0x198ef1ec325a96cc354c7266a038be8b5c558f67" )
15+
16+ for (addresses in accounts) {
17+ getAccounts + = addresses + " ,"
18+ }
19+
20+ Assert .assertEquals(" 0x82e4499D4b2A669831a3881d61BB24f7b620c61a," +
21+ " 0x63a9975ba31b0b9626b34300f7f627147df1f526," +
22+ " 0x198ef1ec325a96cc354c7266a038be8b5c558f67" ,
23+ getAccounts.dropLast(1 ))
24+ }
25+
26+ }
You can’t perform that action at this time.
0 commit comments