问题描述
我正在尝试运行这样的程序:
Matcher<String> mapKeyMatcher = Matchers.is("name");
Matcher<String> mapValueMatcher = Matchers.matchesPattern("Python\\d{2}x\\d{2}");
verify(mock_object,times(1)).install_tool(
(Map<String,String>) argThat(
hasEntry(mapKeyMatcher,mapValueMatcher)
)
);
但是我找不到如何导入 matchesPattern
我正在使用 hamcrest-all 1.2 版,我是否遗漏了什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)