change from @before to init

This commit is contained in:
Hai Nguyen 2018-11-16 10:04:48 +08:00
parent 6557cf2564
commit f0f1eba7b9
1 changed files with 4 additions and 5 deletions

View File

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