{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class BundleJUnitUtils
Utility methods to turn JUnit objects into bundles holding imitations that can be used by .
Public constructors |
|
|---|---|
Public functions |
|
|---|---|
java-static Bundle! |
getBundleFromDescription(description: Description!) |
java-static Bundle! |
getBundleFromFailure(failure: Failure!) |
java-static Bundle! |
getBundleFromResult(result: Result!) |
java-static Bundle! |
getBundleFromThrowable(description: Description!, throwable: Throwable!)Generates a bundle from a description and a given error. |
java-static ParcelableDescription! |
getDescription(bundle: Bundle!) |
java-static ParcelableFailure! |
getFailure(bundle: Bundle!) |
java-static ParcelableResult! |
getResult(bundle: Bundle!) |
java-static fun getBundleFromDescription(description: Description!): Bundle!
java-static fun getBundleFromThrowable(description: Description!, throwable: Throwable!): Bundle!
Generates a bundle from a description and a given error.
| Parameters | |
|---|---|
description: Description! |
A JUnit Description of the test |
throwable: Throwable! |
The root exception cause |
| Returns | |
|---|---|
Bundle! |
A bundle containing a ParcelableFailure constructed from the description and throwable |