Revision control
Copy as Markdown
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
package org.mozilla.tv.firefox.helpers
private const val POCKET_DIR = "pocket"
/** Accessors to resources used in testing. These files are available in `app/src/test/resources`. */
enum class TestResource(private val path: String) {
POCKET_VIDEO_RECOMMENDATION("$POCKET_DIR/video_recommendations.json");
fun get(): String = this::class.java.classLoader!!.getResource(path)!!.readText()
}