package cl.fatman.capital.fund;

import static org.junit.Assert.*;
import org.junit.BeforeClass;
import org.junit.Test;

import java.io.IOException;
import java.time.LocalDate;

public class ExtractFundDataTest {
	
	private static ExtractFundData efData;
	
	
	@BeforeClass
	public static void setUp() {
		String link = "http://www.aafm.cl/tecnoera/index.php?clase=informe&metodo=rentabilidad_html&inversion=%&administradora=%&tipo=";
		String userAgent = "Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.108 Safari/537.36";
		efData = new ExtractFundData(link, userAgent);
	}
	
	
	@Test
	public void getFundDataTest() throws IOException {
		assertNotNull("List with Fund data should not be null", efData.getFundData(1));
	}
	
	
	
	@Test
	public void getFundRateDataTest() {
		LocalDate frDate = LocalDate.now();
		assertNotNull("List with Fund Rate data should not be null", efData.getFundRateData(frDate));
	}
}

@@ -118,36 +118,8 @@
 t;%0A%0A
-import java.io.IOException;%0A
 impo
@@ -634,27 +634,8 @@
 st()
- throws IOException
  %7B%0A%09

Remove unnecessary exception.