@Test
    public void testHistoryFrameJTable() {
        Date fromDate = new Date();
        Calendar c = Calendar.getInstance();
        c.setTime(fromDate);
        c.add(Calendar.MONTH, -2);
        Date toDate = c.getTime();

        HistoryReportForm historyReportForm = new HistoryReportForm("GOOG");
        ScrapStockData scrapStockData = new ScrapStockData();
        List<String>  historyList;
        historyList = scrapStockData.stockHistory("GOOG",toDate, fromDate);
        int i =0;
        for(String str : historyList){
            for(int j= 0 ; j< 7; j++){
               if (i<30) Assert.assertEquals("Compares JTable values with values from Yahoo Finance",historyReportForm.table.getModel().getValueAt(i,j),str.split(",")[j]);
            }
            i++;
        }



    }