Skip to content

Commit 42ef56b

Browse files
committed
Fixed test
1 parent 9b31c6f commit 42ef56b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

example/src/test/java/co/kyash/vtl/example/validators/MaterialDesignColorsValidatorTest.kt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import android.content.Context
44
import co.kyash.vtl.example.api.MaterialDesignColorsApi
55
import co.kyash.vtl.example.testing.RxImmediateSchedulerRule
66
import 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
99
import io.reactivex.Single
1010
import org.junit.Before
1111
import org.junit.Ignore
@@ -18,23 +18,23 @@ import org.robolectric.RuntimeEnvironment
1818
@Suppress("unused")
1919
@RunWith(ParameterizedRobolectricTestRunner::class)
2020
class 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

Comments
 (0)