diff --git a/hibernate-core/src/test/java/org/hibernate/query/criteria/internal/HHH13884Test.java b/hibernate-core/src/test/java/org/hibernate/query/criteria/internal/HHH13884Test.java index b56c244a51..6c5eac1e6a 100644 --- a/hibernate-core/src/test/java/org/hibernate/query/criteria/internal/HHH13884Test.java +++ b/hibernate-core/src/test/java/org/hibernate/query/criteria/internal/HHH13884Test.java @@ -9,6 +9,9 @@ package org.hibernate.query.criteria.internal; import javax.persistence.criteria.Expression; import javax.persistence.criteria.Order; +import org.hibernate.query.sqm.tree.expression.SqmExpression; +import org.hibernate.query.sqm.tree.select.SqmSortSpecification; + import org.hibernate.testing.TestForIssue; import org.junit.Test; @@ -26,9 +29,9 @@ public class HHH13884Test { @Test public void testDefaultReversedOrderImpl() { - Expression expression = mock( Expression.class ); + SqmExpression expression = mock( SqmExpression.class ); - OrderImpl order = new OrderImpl( expression ); + SqmSortSpecification order = new SqmSortSpecification( expression ); assertEquals( expression, order.getExpression() ); assertTrue( "Order should be ascending by default", order.isAscending() );