File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
infra/rewrite/src/test/java/org/apache/shardingsphere/infra/rewrite/context Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -147,11 +147,11 @@ void assertGenerateCollectionSQLToken() {
147
147
}
148
148
149
149
private QueryContext createMockQueryContext (final SQLStatementContext statementContext , final List <Object > parameters ) {
150
- QueryContext queryContext = mock (QueryContext .class , RETURNS_DEEP_STUBS );
151
- when (queryContext .getSqlStatementContext ()).thenReturn (statementContext );
152
- when (queryContext .getSql ()).thenReturn ("INSERT INTO tbl VALUES (?)" );
153
- when (queryContext .getParameters ()).thenReturn (parameters );
154
- when (queryContext .getHintValueContext ()).thenReturn (hintValueContext );
155
- return queryContext ;
150
+ QueryContext result = mock (QueryContext .class , RETURNS_DEEP_STUBS );
151
+ when (result .getSqlStatementContext ()).thenReturn (statementContext );
152
+ when (result .getSql ()).thenReturn ("INSERT INTO tbl VALUES (?)" );
153
+ when (result .getParameters ()).thenReturn (parameters );
154
+ when (result .getHintValueContext ()).thenReturn (hintValueContext );
155
+ return result ;
156
156
}
157
157
}
You can’t perform that action at this time.
0 commit comments