change from @before to init
This commit is contained in:
parent
e27d5f4f1f
commit
3ee9050138
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue