MockService

open class MockService
kotlin.Any
   ↳ android.test.mock.MockService

A mock android.app.Service class.

Provided for use by android.test.ServiceTestCase.

Summary

Public methods
open static Unit
attachForTesting(service: Service!, context: Context!, serviceClassName: String!, application: Application!)

Public methods

attachForTesting

open static fun <T : Service!> attachForTesting(
    service: Service!,
    context: Context!,
    serviceClassName: String!,
    application: Application!
): Unit

Deprecated: Deprecated in Java.