RESTRICT AUTOMERGE: Revert "Revert change to target name"
This reverts commit a5d3741fce322523bf81f5e23ba8001f42ef3e1e.
Test: m
Bug: 184281926
Change-Id: I8bac47333d4a4f4a3153c701fc2225d5fbb3d61a
diff --git a/libartservice/tests/Android.bp b/libartservice/tests/Android.bp
index dc110a1..450e3d2 100644
--- a/libartservice/tests/Android.bp
+++ b/libartservice/tests/Android.bp
@@ -28,7 +28,7 @@
}
java_test {
- name: "ArtServiceTests",
+ name: "ArtManagerLocalTests",
// Include all test java files.
srcs: [
@@ -36,9 +36,10 @@
],
static_libs: [
- "androidx.test.runner",
+ "junit",
"service-art.impl",
],
+ platform_apis: true,
test_suites: ["general-tests"],
}
diff --git a/libartservice/tests/src/com/android/server/art/ArtManagerLocalTests.java b/libartservice/tests/src/com/android/server/art/ArtManagerLocalTests.java
index 515849b..f80ee1a 100644
--- a/libartservice/tests/src/com/android/server/art/ArtManagerLocalTests.java
+++ b/libartservice/tests/src/com/android/server/art/ArtManagerLocalTests.java
@@ -16,22 +16,19 @@
package com.android.server.art;
-import static org.junit.Assert.assertTrue;
-
-import androidx.test.runner.AndroidJUnit4;
+import static org.junit.Assert.assertEquals;
import com.android.server.art.ArtManagerLocal;
-import junit.framework.TestCase;
+import org.junit.Before;
+import org.junit.Rule;
+import org.junit.Test;
-public class ArtManagerLocalTests extends TestCase {
+public class ArtManagerLocalTests {
private ArtManagerLocal mArtManagerLocal;
+ @Before
public void setup() {
mArtManagerLocal = new ArtManagerLocal();
}
-
- public void testScaffolding() {
- assertTrue(true);
- }
}
\ No newline at end of file