Esempio n. 1
0
 @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)));
 }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
 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));
 }