@@ -4,8 +4,8 @@ import android.content.Context
44import co.kyash.vtl.example.api.MaterialDesignColorsApi
55import co.kyash.vtl.example.testing.RxImmediateSchedulerRule
66import co.kyash.vtl.validators.VtlValidator
7- import com.nhaarman.mockito_kotlin .doReturn
8- import com.nhaarman.mockito_kotlin .mock
7+ import com.nhaarman.mockitokotlin2 .doReturn
8+ import com.nhaarman.mockitokotlin2 .mock
99import io.reactivex.Single
1010import org.junit.Before
1111import org.junit.Ignore
@@ -18,23 +18,23 @@ import org.robolectric.RuntimeEnvironment
1818@Suppress(" unused" )
1919@RunWith(ParameterizedRobolectricTestRunner ::class )
2020class MaterialDesignColorsValidatorTest (
21- private val text : String? ,
22- private val errorMessage : String?
21+ private val text : String? ,
22+ private val errorMessage : String?
2323) {
2424
2525 companion object {
26- private val ERROR_MESSAGE = " This is not Material design color"
26+ private const val ERROR_MESSAGE = " This is not Material design color"
2727
2828 @JvmStatic
2929 @ParameterizedRobolectricTestRunner.Parameters
3030 fun data (): List <Array <out Any ?>> {
3131 return listOf (
32- arrayOf(" Gold" , ERROR_MESSAGE ),
33- arrayOf(" Blue Red" , ERROR_MESSAGE ),
34- arrayOf(" Blue " , null ),
35- arrayOf(" Blue" , null ),
36- arrayOf(" Blue" , null ),
37- arrayOf(" Red" , null )
32+ arrayOf(" Gold" , ERROR_MESSAGE ),
33+ arrayOf(" Blue Red" , ERROR_MESSAGE ),
34+ arrayOf(" Blue " , null ),
35+ arrayOf(" Blue" , null ),
36+ arrayOf(" Blue" , null ),
37+ arrayOf(" Red" , null )
3838 )
3939 }
4040 }
0 commit comments