Skip to content

Commit b321922

Browse files
author
Ebenezer Ackon
committed
Add Utility Test
1 parent 7854a26 commit b321922

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
}

0 commit comments

Comments
 (0)