BundleJUnitUtils


class BundleJUnitUtils


Utility methods to turn JUnit objects into bundles holding imitations that can be used by .

Summary

Public functions

java-static Bundle!
java-static Bundle!
java-static Bundle!
java-static Bundle!
getBundleFromThrowable(description: Description!, throwable: Throwable!)

Generates a bundle from a description and a given error.

java-static ParcelableDescription!
java-static ParcelableFailure!
getFailure(bundle: Bundle!)
java-static ParcelableResult!
getResult(bundle: Bundle!)

Public functions

getBundleFromDescription

java-static fun getBundleFromDescription(description: Description!): Bundle!

getBundleFromFailure

java-static fun getBundleFromFailure(failure: Failure!): Bundle!

getBundleFromResult

java-static fun getBundleFromResult(result: Result!): Bundle!

getBundleFromThrowable

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

getDescription

java-static fun getDescription(bundle: Bundle!): ParcelableDescription!

getFailure

java-static fun getFailure(bundle: Bundle!): ParcelableFailure!

getResult

java-static fun getResult(bundle: Bundle!): ParcelableResult!