Use Class#getSimpleName instead of KClass#getSimpleName
KClass#getSimpleName need refer to kotlin-reflect.jar which need include it in Andorid.bp. However, it's not necessary to use KClass#getSimpleName but use Class#getSimpleName instead. Test: atest TetheringTests Bug: 157527499 Change-Id: I49bc336a276d30152402eba926cc583bc81e8e5c
This commit is contained in:
@@ -130,7 +130,7 @@ class TetheringNotificationUpdaterTest {
|
|||||||
context = TestContext(InstrumentationRegistry.getInstrumentation().context)
|
context = TestContext(InstrumentationRegistry.getInstrumentation().context)
|
||||||
doReturn(notificationManager).`when`(mockContext)
|
doReturn(notificationManager).`when`(mockContext)
|
||||||
.getSystemService(Context.NOTIFICATION_SERVICE)
|
.getSystemService(Context.NOTIFICATION_SERVICE)
|
||||||
fakeTetheringThread = HandlerThread(this::class.simpleName)
|
fakeTetheringThread = HandlerThread(this::class.java.simpleName)
|
||||||
fakeTetheringThread.start()
|
fakeTetheringThread.start()
|
||||||
notificationUpdater = WrappedNotificationUpdater(context, fakeTetheringThread.looper)
|
notificationUpdater = WrappedNotificationUpdater(context, fakeTetheringThread.looper)
|
||||||
setupResources()
|
setupResources()
|
||||||
|
|||||||
Reference in New Issue
Block a user