on-internet
← Community

How to test the method that reads the data from the excel file in java?

Stack Overflow ·

The above picture shows the excel file containing the Facebook data. The class FacebookDataExtraction reads the data from the Excel file and stores the data as list of row objects as shown in the code. I have made use of the config.properties file to get the file path. The contents of config.properties file are: FILE_NAME=D:/Refreshed_data_daily/all_hue_posts_in_excel.xlsx. public class FacebookDataExtraction { //private static final String FILE_NAME="D:/Refreshed_data_daily/all_hue_posts_in_excel.xlsx"; private static final String SHEET_NAME="nextv54plus_actions"; XSSFWorkbook workbook; publi

Comments

Sign in or sign up to comment and upvote.

No comments yet.