Stay organized with collections
Save and categorize content based on your preferences.
interface VerificationMode
An interface for different modes of verifying intents.
Summary
Public functions |
Unit |
Verifies the recorded intents that match the provided Matcher .
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# VerificationMode\n================\n\nArtifact: [androidx.test.espresso:espresso-intents](/jetpack/androidx/releases/test-espresso) \n[View Source](https://cs.android.com/search?q=file:androidx/test/espresso/intent/VerificationMode.java+class:androidx.test.espresso.intent.VerificationMode)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/test/espresso/intent/VerificationMode \"View this page in Java\")\n\n\n```\ninterface VerificationMode\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn interface for different modes of verifying intents.\n\nSummary\n-------\n\n| ### Public functions |\n|-------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [verify](/reference/kotlin/androidx/test/espresso/intent/VerificationMode#verify(org.hamcrest.Matcher\u003candroid.content.Intent\u003e,java.util.List\u003candroidx.test.espresso.intent.VerifiableIntent\u003e))`(` ` matcher: `[Matcher](https://junit.org/junit4/javadoc/4.12/org/hamcrest/Matcher.html)`\u003c`[Intent](https://developer.android.com/reference/android/content/Intent.html)`!\u003e!,` ` recordedIntents: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`\u003c`[VerifiableIntent](/reference/kotlin/androidx/test/espresso/intent/VerifiableIntent)`!\u003e!` `)` Verifies the recorded intents that match the provided [Matcher](https://junit.org/junit4/javadoc/4.12/org/hamcrest/Matcher.html). |\n\nPublic functions\n----------------\n\n### verify\n\n```\nfun verify(\n matcher: Matcher\u003cIntent!\u003e!,\n recordedIntents: (Mutable)List\u003cVerifiableIntent!\u003e!\n): Unit\n```\n\nVerifies the recorded intents that match the provided [Matcher](https://junit.org/junit4/javadoc/4.12/org/hamcrest/Matcher.html). No intents should be marked as verified unless the verification passes."]]