src/main/java/framework/CommonMethods.java
/**
     *
     * @param arrayList pass the arraylist that you want to check
     * @param errorMsg sent the error message you wanted to show
     * @param log log object to add the error message into the log
     */
@param arrayList pass the arraylist that you want to check
@param errorMsg sent the error message you wanted to show
@param log log object to add the error message into the log
@param arrayList pass the arraylist that you want to check @param errorMsg sent the error message you wanted to show @param log log object to add the error message into the log
public  void verifyJsonArrayIsEmpty(JSONArray arrayList, String errorMsg, Logger log){
        if(arrayList.isEmpty()){
            log.error(errorMsg);
            throw new TesboException(errorMsg);
        }
    }
public void verifyJsonArrayIsEmpty ( JSONArray arrayList , String errorMsg , Logger log ) { if ( arrayList . isEmpty ( ) ) { log . error ( errorMsg ) ; throw new TesboException ( errorMsg ) ; } }
@param arrayList pass the arraylist that you want to check
 @param errorMsg sent the error message you wanted to show
 @param log log object to add the error message into the log
@param arrayList pass the arraylist that you want to check @param errorMsg sent the error message you wanted to show @param log log object to add the error message into the log