Ordering second = orderBy.get(1);
assertThat(second.getOperand(), is(instanceOf(FullTextSearchScore.class)));
assertThat(second.order(), is(Order.DESCENDING));
Ordering third = orderBy.get(2);
assertThat(third.getOperand(), is(instanceOf(Length.class)));
assertThat(third.order(), is(Order.ASCENDING));
}
@Test( expected = ParsingException.class )
public void shouldFailToParseOrderByIfCommaNotFollowedByAnotherOrdering() {
parser.parseOrderBy(tokens("ORDER BY NAME(tableA) ASC, NOT A VALID ORDERING"), typeSystem, mock(Source.class));