Android Developers Docs Reference androidx.test.rule.provider Classes ProviderTestRule A TestRule to test ContentProviders, with additional APIs to enable easy initialization such as restoring database from a file, running database commands passed in as a String or a file. ProviderTestRule.Builder A Builder to ease ProviderTestRule creation. Classes ProviderTestRule ProviderTestRule.Builder Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates. Last updated January 23, 2019.