Stop using deprecated TestParameter.TestParameterValuesProvider
This commit is contained in:
parent
e3eab89fd2
commit
56257bd1d3
1 changed files with 3 additions and 3 deletions
|
|
@ -17,10 +17,10 @@
|
|||
package ui
|
||||
|
||||
import com.airbnb.android.showkase.models.Showkase
|
||||
import com.google.testing.junit.testparameterinjector.TestParameter
|
||||
import com.google.testing.junit.testparameterinjector.TestParameterValuesProvider
|
||||
|
||||
object PreviewProvider : TestParameter.TestParameterValuesProvider {
|
||||
override fun provideValues(): List<TestPreview> {
|
||||
object PreviewProvider : TestParameterValuesProvider() {
|
||||
override fun provideValues(context: Context): List<TestPreview> {
|
||||
val metadata = Showkase.getMetadata()
|
||||
val components = metadata.componentList.map(::ComponentTestPreview)
|
||||
val colors = metadata.colorList.map(::ColorTestPreview)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue