【问题标题】:Espresso Intents Custom Intent MatcherEspresso Intents 自定义 Intent 匹配器
【发布时间】:2017-05-11 15:32:23
【问题描述】:

如何为 Intent 创建自定义匹配器,以便我可以查看它的内容并找出我的“预期”代码匹配器失败的原因?

【问题讨论】:

    标签: android-espresso


    【解决方案1】:
         intended(allOf(new TypeSafeMatcher<Intent>() {
           @Override
           protected boolean matchesSafely(Intent item) {
               return false;
           }
    
           @Override
           public void describeTo(Description description) {
    
           }
       },
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-12-10
      • 2020-07-07
      • 2021-06-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-26
      相关资源
      最近更新 更多