Exemplo 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)));
 }
Exemplo 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));
 }
Exemplo 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));
 }