Skip to content

Commit

Permalink
rename varibale to result in test-class
Browse files Browse the repository at this point in the history
  • Loading branch information
omkar-shitole committed Jan 30, 2025
1 parent 41c96cd commit 033c582
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ void assertGenerateCollectionSQLToken() {
}

private QueryContext createMockQueryContext(final SQLStatementContext statementContext, final List<Object> parameters) {
QueryContext queryContext = mock(QueryContext.class, RETURNS_DEEP_STUBS);
when(queryContext.getSqlStatementContext()).thenReturn(statementContext);
when(queryContext.getSql()).thenReturn("INSERT INTO tbl VALUES (?)");
when(queryContext.getParameters()).thenReturn(parameters);
when(queryContext.getHintValueContext()).thenReturn(hintValueContext);
return queryContext;
QueryContext result = mock(QueryContext.class, RETURNS_DEEP_STUBS);
when(result.getSqlStatementContext()).thenReturn(statementContext);
when(result.getSql()).thenReturn("INSERT INTO tbl VALUES (?)");
when(result.getParameters()).thenReturn(parameters);
when(result.getHintValueContext()).thenReturn(hintValueContext);
return result;
}
}

0 comments on commit 033c582

Please sign in to comment.