summaryrefslogtreecommitdiff
path: root/service/src/AutoOnFeatureTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'service/src/AutoOnFeatureTest.kt')
-rw-r--r--service/src/AutoOnFeatureTest.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/src/AutoOnFeatureTest.kt b/service/src/AutoOnFeatureTest.kt
index 31bcde3504..2c3bb082ff 100644
--- a/service/src/AutoOnFeatureTest.kt
+++ b/service/src/AutoOnFeatureTest.kt
@@ -56,6 +56,9 @@ import org.robolectric.Shadows.shadowOf
@RunWith(RobolectricTestRunner::class)
@kotlinx.coroutines.ExperimentalCoroutinesApi
class AutoOnFeatureTest {
+ @get:Rule val testName = TestName()
+ @get:Rule val expect = Expect.create()
+
private val looper = Looper.getMainLooper()
private val state = BluetoothAdapterState()
private val context = ApplicationProvider.getApplicationContext<Context>()
@@ -65,9 +68,6 @@ class AutoOnFeatureTest {
private var callback_count = 0
- @JvmField @Rule val testName = TestName()
- @JvmField @Rule val expect = Expect.create()
-
@Before
fun setUp() {
Log.i("AutoOnFeatureTest", "\t--> setUp(${testName.getMethodName()})")