@SafeVarargs protected final <T> void assertPropertyIsList( PlanNode node, Property name, Class<T> valueType, T... values) { assertThat( "Property value doesn't match", node.getPropertyAsList(name, valueType), is(Arrays.asList(values))); }
protected void assertSortOrderBy(PlanNode sortNode, String... selectors) { List<SelectorName> expected = new ArrayList<SelectorName>(selectors.length); for (String selectorName : selectors) { expected.add(new SelectorName(selectorName)); } List<SelectorName> actualSortedBy = sortNode.getPropertyAsList(Property.SORT_ORDER_BY, SelectorName.class); assertThat("Sort node order-by doesn't match selector name list", actualSortedBy, is(expected)); }
protected <T> void assertPropertyIsList( PlanNode node, Property name, Class<T> valueType, List<T> values) { assertThat("Property value doesn't match", node.getPropertyAsList(name, valueType), is(values)); }