use of io.crnk.jpa.internal.query.backend.querydsl.QuerydslTupleImpl in project crnk-framework by crnk-project.
the class QueryDslTupleImplTest method setup.
@Before
public void setup() {
expression = Mockito.mock(Expression.class);
Tuple tuple = Mockito.mock(Tuple.class);
Mockito.when(tuple.size()).thenReturn(2);
Mockito.when(tuple.get(expression)).thenReturn("test");
Mockito.when(tuple.toArray()).thenReturn(new Object[] { "0", "1" });
Mockito.when(tuple.get(0, String.class)).thenReturn("0");
Mockito.when(tuple.get(1, String.class)).thenReturn("1");
Mockito.when(tuple.size()).thenReturn(2);
Map<String, Integer> selectionBindings = new HashMap<>();
impl = new QuerydslTupleImpl(tuple, selectionBindings);
}
Aggregations