android-components / mozilla.components.support.android.test.rules / WebserverRule
WebserverRule
class WebserverRule : TestWatcher
(source)
A TestWatcher junit rule that will serve content from assets in the test package.
Constructors
Name | Summary |
---|---|
<init> | WebserverRule() A TestWatcher junit rule that will serve content from assets in the test package. |
Functions
Name | Summary |
---|---|
finished | fun finished(description: Description?): Unit |
starting | fun starting(description: Description?): Unit |
url | fun url(path: String = ""): String |
Extension Functions
Name | Summary |
---|---|
loadResourceAsString | fun Any .loadResourceAsString(path: String ): String Loads a file from the resources folder and returns its content as a string object. |