Merge "Fix AnimationLib Test not running in presubmit" into tm-qpr-dev

This commit is contained in:
Johannes Gallmann
2022-12-07 09:59:29 +00:00
committed by Android (Google) Code Review
3 changed files with 2 additions and 28 deletions

View File

@@ -44,23 +44,3 @@ android_library {
manifest: "AndroidManifest.xml", manifest: "AndroidManifest.xml",
kotlincflags: ["-Xjvm-default=all"], kotlincflags: ["-Xjvm-default=all"],
} }
android_test {
name: "SystemUIAnimationLibTests",
static_libs: [
"SystemUIAnimationLib",
"androidx.test.ext.junit",
"androidx.test.rules",
"testables",
],
libs: [
"android.test.base",
],
srcs: [
"**/*.java",
"**/*.kt",
],
kotlincflags: ["-Xjvm-default=all"],
test_suites: ["general-tests"],
}

View File

@@ -1,7 +0,0 @@
{
"presubmit": [
{
"name": "SystemUIAnimationLibTests"
}
]
}

View File

@@ -17,6 +17,7 @@
package com.android.systemui.animation package com.android.systemui.animation
import androidx.test.filters.SmallTest import androidx.test.filters.SmallTest
import com.android.systemui.SysuiTestCase
import java.lang.reflect.Modifier import java.lang.reflect.Modifier
import junit.framework.Assert.assertEquals import junit.framework.Assert.assertEquals
import org.junit.Test import org.junit.Test
@@ -25,7 +26,7 @@ import org.junit.runners.JUnit4
@SmallTest @SmallTest
@RunWith(JUnit4::class) @RunWith(JUnit4::class)
class InterpolatorsAndroidXTest { class InterpolatorsAndroidXTest : SysuiTestCase() {
@Test @Test
fun testInterpolatorsAndInterpolatorsAndroidXPublicMethodsAreEqual() { fun testInterpolatorsAndInterpolatorsAndroidXPublicMethodsAreEqual() {