super(map, IMapAssert.class);
this.valueClaz = Map.class;
}
public IMapAssert hasKeys(Object key, Object... keys) {
MapMatcher matcher1 = new MapMatcher(key, MapMatcherType.KEY);
if (keys == null || keys.length == 0) {
return assertThat(matcher1);
}
List<Matcher> list = new ArrayList<Matcher>();
list.add(matcher1);
for (Object item : keys) {
list.add(new MapMatcher(item, MapMatcherType.KEY));
}
return assertThat(AllOf.allOf(list));
}