android.support.test.espresso.base.DefaultFailureHandler$AssertionFailedWithCauseError: 'with text: is "Mock String"' doesn't match the selected view. Expected: with text: is "Mock String" Got: "AppCompatTextView{id=2131427413, res-name=tv_text_data, visibility=VISIBLE, width=183, height=38, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=32.0, y=128.0, text=Release String, input-type=0, ime-target=false, has-links=false}"

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Mes
, 1 year ago
'with text: is "Mock String"' doesn't match the selected view. Expected: with text: is "Mock String" Got: "AppCompatTextView{id=2131427413, res-name=tv_text_data, visibility=VISIBLE, width=183, height=38, has-focus=false, has-focusable=false, has
via Stack Overflow by Muhammad Muzammil
, 4 months ago
-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=256.0, y=74.0, text=TITLE1, input-type=0, ime-target=false, has-links=false} Expected: is <false> Got: <true>
via Stack Overflow by Nirvan Anjirbag
, 7 months ago
-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=32.0, y=0.0, text=Settings, input-type=0, ime-target=false, has-links=false, is-checked=false} Expected: is <false> Got: <true>
via Stack Overflow by Otis Lee
, 1 year ago
Wanted to match 1 intents. Actually matched 0 intents. IntentMatcher: has component: has component with: class name: is "com.dev.lib.testespressointents.SecondActivity" package name: an instance of java.lang.String short class name: an instance of
via Stack Overflow by Javier Ventajas Hern&#225;ndez
, 1 year ago
Wanted to match 1 intents. Actually matched 0 intents. IntentMatcher: (resolvesTo: com.example.madelenko.jokeactivity and has extras: has bundle with: key: "joke" value: "!false: it's funny because it's true.") Matched intents:[] Recorded intents:[]
via Stack Overflow by Varun
, 8 months ago
Wanted to match 1 intents. Actually matched 0 intents. IntentMatcher: has component: has component with: class name: is "com.varun.project.MainActivity" package name: an instance of java.lang.String short class name: an instance of java.lang.String Matched intents:[] Recorded intents:[]
junit.framework.AssertionFailedError: 'with text: is "Mock String"' doesn't match the selected view. Expected: with text: is "Mock String" Got: "AppCompatTextView{id=2131427413, res-name=tv_text_data, visibility=VISIBLE, width=183, height=38, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=32.0, y=128.0, text=Release String, input-type=0, ime-target=false, has-links=false}"
at android.support.test.espresso.matcher.ViewMatchers.assertThat(ViewMatchers.java:1053)
at android.support.test.espresso.assertion.ViewAssertions$2.check(ViewAssertions.java:89)
at android.support.test.espresso.ViewInteraction$2.run(ViewInteraction.java:170)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5086)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)

Users with the same issue

2 times, 11 months ago
9 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.