Skip to content

Commit 4d8c14c

Browse files
DeepMindcopybara-github
authored andcommitted
Automated Code Change
PiperOrigin-RevId: 845403570
1 parent a5186c4 commit 4d8c14c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

android_env/apps/javatests/com/google/androidenv/catch/sprite/BackgroundTest.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package com.google.androidenv.catch.sprite
1616

1717
import android.graphics.Canvas
1818
import android.graphics.Color
19+
import com.google.testing.junit.testparameterinjector.KotlinTestParameters.testValues
1920
import com.google.testing.junit.testparameterinjector.TestParameter
2021
import com.google.testing.junit.testparameterinjector.TestParameterInjector
2122
import org.junit.Test
@@ -41,7 +42,9 @@ class BackgroundTest {
4142
}
4243

4344
@Test
44-
fun draw_customColors(@TestParameter("0", "255", "13579", "2468", "12384173") colorInt: Int) {
45+
fun draw_customColors(
46+
@TestParameter colorInt: Int = testValues(0, 255, 13_579, 2_468, 12_384_173)
47+
) {
4548
// Arrange.
4649
val mockCanvas: Canvas = mock()
4750
val background: Background = Background(color = colorInt)

0 commit comments

Comments
 (0)