adamsaghy commented on code in PR #3205:
URL: https://github.com/apache/fineract/pull/3205#discussion_r1209969105


##########
fineract-provider/src/test/java/org/apache/fineract/infrastructure/dataqueries/service/ReadWriteNonCoreDataServiceImplTest.java:
##########
@@ -81,30 +85,56 @@ public void testSqlInjectionCaughtQueryDataTable2() {
     @Test
     public void testQueryDataTableSuccess() {
         SqlRowSet sqlRS = Mockito.mock(SqlRowSet.class);
-        when(jdbcTemplate.queryForRowSet(eq("select rc1,rc2 from table where 
cf1 = ?"), any(Object[].class), any(int[].class)))
-                .thenReturn(sqlRS);
+        when(jdbcTemplate.queryForRowSet(eq("select rc1,rc2 from table where 
cf1 = ?"), any(Object.class))).thenReturn(sqlRS);
         when(sqlRS.next()).thenReturn(true).thenReturn(false);
         
when(sqlRS.getObject(ArgumentMatchers.anyString())).thenReturn("value1").thenReturn("value2");
         
when(sqlGenerator.escape(ArgumentMatchers.anyString())).thenReturn("rc1").thenReturn("rc2").thenReturn("table").thenReturn("cf1");
         when(databaseTypeResolver.isPostgreSQL()).thenReturn(true);
 
-        ResultsetColumnHeaderData cf1 = 
ResultsetColumnHeaderData.detailed("cf1", "text", 10L, false, false, null, 
null, false, false);
-        ResultsetColumnHeaderData rc1 = 
ResultsetColumnHeaderData.detailed("rc1", "text", 10L, false, false, null, 
null, false, false);
-        ResultsetColumnHeaderData rc2 = 
ResultsetColumnHeaderData.detailed("rc2", "text", 10L, false, false, null, 
null, false, false);
+        ResultsetColumnHeaderData cf1 = 
ResultsetColumnHeaderData.detailed("cf1", "text", 10L, false, false, 
emptyList(), null, false,

Review Comment:
   why change the null to emptyList?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to