Unit testing of Jar methods in java
问题 I'm using Apache POI methods for writing to excel sheets in java. I have to do unit-testing for the methods which I have written. I have used many methods of Apache POI. Should I stub all the methods of the different object classes of Apache POI? Example: I have created wrapper methods for writing to cell which are using Apache POI methods. protected void writeCell(int rowNum, int colNum, String value, Sheet sheet) { if(value == null) { return; } Row row = sheet.getRow(rowNum); Cell cell =