|
|
@ -14,7 +14,6 @@
|
|
|
|
* limitations under the License.
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
import androidx.annotation.VisibleForTesting
|
|
|
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.network.demo.DemoAssetManager
|
|
|
|
import com.google.samples.apps.nowinandroid.core.network.demo.DemoAssetManager
|
|
|
|
import java.io.File
|
|
|
|
import java.io.File
|
|
|
|
import java.io.InputStream
|
|
|
|
import java.io.InputStream
|
|
|
@ -25,7 +24,7 @@ import java.util.Properties
|
|
|
|
* It must remain on the root package for an easier [Class.getResource] with relative paths.
|
|
|
|
* It must remain on the root package for an easier [Class.getResource] with relative paths.
|
|
|
|
* @see <a href="https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/dsl/UnitTestOptions">UnitTestOptions</a>
|
|
|
|
* @see <a href="https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/dsl/UnitTestOptions">UnitTestOptions</a>
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@VisibleForTesting
|
|
|
|
|
|
|
|
internal object JvmUnitTestDemoAssetManager : DemoAssetManager {
|
|
|
|
internal object JvmUnitTestDemoAssetManager : DemoAssetManager {
|
|
|
|
private val config =
|
|
|
|
private val config =
|
|
|
|
requireNotNull(javaClass.getResource("com/android/tools/test_config.properties")) {
|
|
|
|
requireNotNull(javaClass.getResource("com/android/tools/test_config.properties")) {
|
|
|
|