From 866a935cafb6b35ca157ce0f1c16d81cae70e3c4 Mon Sep 17 00:00:00 2001 From: Johannes Gallmann Date: Fri, 2 Dec 2022 12:18:29 +0000 Subject: [PATCH] Fix AnimationLib Test not running in presubmit Test: atest InterpolatorsAndroidXTest Bug: 259063937 Change-Id: I25c4eef9bf489a944ed692147a43e486db14433e --- packages/SystemUI/animation/Android.bp | 20 ------------------- packages/SystemUI/animation/TEST_MAPPING | 7 ------- .../animation/InterpolatorsAndroidXTest.kt | 3 ++- 3 files changed, 2 insertions(+), 28 deletions(-) delete mode 100644 packages/SystemUI/animation/TEST_MAPPING rename packages/SystemUI/{animation/tests => tests/src}/com/android/systemui/animation/InterpolatorsAndroidXTest.kt (94%) diff --git a/packages/SystemUI/animation/Android.bp b/packages/SystemUI/animation/Android.bp index 17ad55f403fb3..8acc2f8adcf94 100644 --- a/packages/SystemUI/animation/Android.bp +++ b/packages/SystemUI/animation/Android.bp @@ -44,23 +44,3 @@ android_library { manifest: "AndroidManifest.xml", 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"], -} diff --git a/packages/SystemUI/animation/TEST_MAPPING b/packages/SystemUI/animation/TEST_MAPPING deleted file mode 100644 index 3dc8510bbf240..0000000000000 --- a/packages/SystemUI/animation/TEST_MAPPING +++ /dev/null @@ -1,7 +0,0 @@ -{ - "presubmit": [ - { - "name": "SystemUIAnimationLibTests" - } - ] -} diff --git a/packages/SystemUI/animation/tests/com/android/systemui/animation/InterpolatorsAndroidXTest.kt b/packages/SystemUI/tests/src/com/android/systemui/animation/InterpolatorsAndroidXTest.kt similarity index 94% rename from packages/SystemUI/animation/tests/com/android/systemui/animation/InterpolatorsAndroidXTest.kt rename to packages/SystemUI/tests/src/com/android/systemui/animation/InterpolatorsAndroidXTest.kt index 389eed015820c..2c680be97e953 100644 --- a/packages/SystemUI/animation/tests/com/android/systemui/animation/InterpolatorsAndroidXTest.kt +++ b/packages/SystemUI/tests/src/com/android/systemui/animation/InterpolatorsAndroidXTest.kt @@ -17,6 +17,7 @@ package com.android.systemui.animation import androidx.test.filters.SmallTest +import com.android.systemui.SysuiTestCase import java.lang.reflect.Modifier import junit.framework.Assert.assertEquals import org.junit.Test @@ -25,7 +26,7 @@ import org.junit.runners.JUnit4 @SmallTest @RunWith(JUnit4::class) -class InterpolatorsAndroidXTest { +class InterpolatorsAndroidXTest : SysuiTestCase() { @Test fun testInterpolatorsAndInterpolatorsAndroidXPublicMethodsAreEqual() {