use of com.querydsl.core.types.dsl.PathBuilderFactory in project spring-data-commons by spring-projects.
the class QSortUnitTests method handlesPlainStringPathsCorrectly.
// DATACMNS-755
@Test
public void handlesPlainStringPathsCorrectly() {
StringPath path = new PathBuilderFactory().create(User.class).getString("firstname");
QSort sort = new QSort(new OrderSpecifier<>(com.querydsl.core.types.Order.ASC, path));
assertThat(sort).contains(new Order(Direction.ASC, "firstname"));
}
Aggregations