setCatalog
fun setCatalog( name: String, catalog: FakeMusicCatalogItem, context: Context = testContext): Boolean
Content copied to clipboard
Change the catalog offered by the FakeMusic media source to catalog. The catalog will be used until changed again, or until the next reset.
When using FakeMusicMediaSourceController from inside the test framework, leave context to the default value to use the instrumentation context.
Note: Be sure to set catalog before starting the source clients. Ideally, call this method before running the test, i.e. in a before
block. Another safe option is to set the catalog before launching the media application, i.e. before tapping the Media tab.
Return
true
when the action was successfully processed, false otherwise.