change from @before to init

This commit is contained in:
Hai Nguyen 2018-11-16 10:18:14 +08:00
parent e27d5f4f1f
commit 3ee9050138
1 changed files with 1 additions and 8 deletions

View File

@ -13,14 +13,7 @@ const val STRING_LENGTH = 10
const val ALPHANUMERIC_REGEX = "[a-zA-Z0-9]+"
class RandomStringTest {
private val charPool = ArrayList<Char>()
init {
charPool.addAll('a'..'z')
charPool.addAll('A'..'Z')
charPool.addAll('0'..'9')
}
private val charPool : List<Char> = ('a'..'z') + ('A'..'Z') + ('0'..'9')
@Test
fun givenAStringLength_whenUsingJava_thenReturnAlphanumericString() {