IviServiceRule
Rule to setup the initialIviServiceTestConfiguration before starting the test.
During the test execution the configuration can be changed by setting iviServiceTestConfiguration.
The IVI service configurations offered by this class are limited to the main process and thus limited to single process setups only or, when using services in other processes, limited to services that do not need any other non-mocked services. The alternative is to extend the TestApplication and set TestApplication.iviServiceTestConfiguration. A combination is also possible.
To use this rule, the TestApplication class or a class inheriting TestApplication must be used as Android Application class.
Constructors
Properties
Functions
Wrapper around <Service>.createApi()
calls.
Wrapper around <Service>.getServiceIds
calls.
Returns true
when an IVI service mock is available matching the iviServiceMockIdentifier.
Returns true
when an IVI service mock is available for the iviServiceMockClass instance.
Resets the IVI service manager.
Applies block on a mock instance identified by the iviServiceMockIdentifier on the main thread.
Applies block on the iviServiceMockClass instance on the main thread.
Applies block on a mock instance identified by the iviServiceMockIdentifier on the test thread.
Applies block on the iviServiceMockClass instance on the test thread.