change from @before to init

This commit is contained in:
Hai Nguyen 2018-11-16 10:04:48 +08:00
parent 6557cf2564
commit f0f1eba7b9

View File

@ -16,11 +16,10 @@ class RandomStringTest {
val charPool = ArrayList<Char>() val charPool = ArrayList<Char>()
@BeforeEach init {
fun charPool() { charPool.addAll('a'..'z')
charPool.addAll('a'..'z'); charPool.addAll('A'..'Z')
charPool.addAll('A'..'Z'); charPool.addAll('0'..'9')
charPool.addAll('0'..'9');
} }
@Test @Test