The ServiceTestCase<T>
This is a test case specially created to test services. The methods to exercise the service life cycle, such as setupService
, startService
, bindService
, and shutDownService
, are also included in this class.
The constructor
There is only one public non-deprecated constructor for this class. This is as follows:
ServiceTestCase(Class<T> serviceClass)
It should be invoked with an instance of the Service
class for the same Service
used as a class template parameter.
Get Learning Android Application Testing now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.