@Factory
public static <T> Matcher<MuleMessage> hasPropertyInAnyScope(String key) {
List<Matcher<? super MuleMessage>> allScopeMatchers = new ArrayList<Matcher<? super MuleMessage>>(4);
allScopeMatchers.add(new PropertyMatcher(PropertyScope.INBOUND, key, IsNull.notNullValue()));
allScopeMatchers.add(new PropertyMatcher(PropertyScope.OUTBOUND, key, IsNull.notNullValue()));
allScopeMatchers.add(new PropertyMatcher(PropertyScope.INVOCATION, key, IsNull.notNullValue()));
allScopeMatchers.add(new PropertyMatcher(PropertyScope.SESSION, key, IsNull.notNullValue()));
return new AnyOf<MuleMessage>(allScopeMatchers);
}
PropertyMatcher.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:mule-module-hamcrest
作者:
评论列表
文章目录